-
Notifications
You must be signed in to change notification settings - Fork 208
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
feat: lock to propose #9430
base: master
Are you sure you want to change the base?
feat: lock to propose #9430
Conversation
@@ -154,7 +154,7 @@ contract GetProposalStateTest is ApellaBase { | |||
// We can overwrite the quorum to be 0 to hit an invalid case | |||
assertGt(apella.getProposal(proposalId).config.quorum, 0); | |||
bytes32 slot = | |||
bytes32(uint256(keccak256(abi.encodePacked(uint256(proposalId), uint256(1)))) + 4); | |||
bytes32(uint256(keccak256(abi.encodePacked(uint256(proposalId), uint256(1)))) + 6); |
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.
forge StdStorage would make this easier to update
@@ -0,0 +1,8 @@ | |||
ProposeWithLockTest | |||
├── when caller have insufficient power |
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.
typo: have -> has
|
||
return true; | ||
_initiateWithdraw(_to, amount, configuration.proposeConfig.lockDelay); |
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.
Perhaps we can make it more explicit that this delay is longer than votingDelay + votingDuration
to prevent someone from voting on their own emergency proposal. Right now this is the same delay as any other withdrawal.
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 is not the same delay as any other withdrawal, have renamed it to make it more clear as I could see the confusion.
3f07135
to
db70936
Compare
2727db9
to
adaf52d
Compare
Changes to public function bytecode sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
Fixes #9348