-
Notifications
You must be signed in to change notification settings - Fork 2
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
DC7 #1
Conversation
function setRequiredScore(uint256 newRequiredScore) external onlyOwner { | ||
emit RequiredScoreUpdated(requiredScore, newRequiredScore); | ||
requiredScore = newRequiredScore; | ||
} | ||
|
||
function setAttestor(address newAttestor) external onlyOwner { | ||
emit AttestorUpdated(attestor, newAttestor); | ||
attestor = newAttestor; | ||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
No description provided.