Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DC7 #1

Merged
merged 15 commits into from
Mar 28, 2024
Merged

DC7 #1

merged 15 commits into from
Mar 28, 2024

Conversation

kevincharm
Copy link
Collaborator

No description provided.

Comment on lines +38 to +46
function setRequiredScore(uint256 newRequiredScore) external onlyOwner {
emit RequiredScoreUpdated(requiredScore, newRequiredScore);
requiredScore = newRequiredScore;
}

function setAttestor(address newAttestor) external onlyOwner {
emit AttestorUpdated(attestor, newAttestor);
attestor = newAttestor;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should probably not be possible to adjust those parameters after the auction-raffle has started.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it doesn't make a difference since the attestation is centralised/trusted anyway. I included it in case the attestor key gets leaked or something.

@@ -99,13 +82,18 @@ contract AuctionRaffle is Ownable, Config, BidModel, StateModel {
* @notice Places a new bid or bumps an existing bid.
* @dev Assigns a unique bidderID to the sender address.
*/
function bid() external payable onlyExternalTransactions onlyInState(State.BIDDING_OPEN) {
function bid(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we extract a method for bumping bids to avoid having to pass score and proof again?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, this would be annoying. I separated them out.

@kevincharm kevincharm changed the title WIP: DC7 DC7 Mar 28, 2024
@kevincharm kevincharm merged commit 396e3c3 into master Mar 28, 2024
@kevincharm kevincharm deleted the feature/feistel-shuffle branch March 28, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants