-
Notifications
You must be signed in to change notification settings - Fork 0
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
Added GovernorSettableFixedQuorumUpgradeable #20
Conversation
Converted back to draft till we get the contract size small enough.. this is the cause of the CI failure |
Pull Request Test Coverage Report for Build 11295061138Details
💛 - Coveralls |
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.
lgtm; pain we're already near contract size limit; we'll punt on that for now though.
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
d086d70
to
1c9cb65
Compare
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.
Looks good!
@@ -24,7 +24,7 @@ contract CompoundGovernorTest is Test, CompoundGovernorConstants { | |||
} | |||
|
|||
function testInitialize() public view { | |||
assertEq(governor.quorumVotes(), INITIAL_QUORUM); | |||
assertEq(governor.quorum(block.timestamp), INITIAL_QUORUM); |
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.
should be block.number
?
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.
Done: 701baf3
878d2b6
to
a4334c8
Compare
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
contracts/extensions/GovernorSettableFixedQuorumUpgradeable.sol
Outdated
Show resolved
Hide resolved
Notice and addition of "virtual" to functions where it was missing. Co-authored-by: Ed Mazurek <[email protected]>
* Added GovernorSettableFixedQuorumUpgradeable * Changed foundry.toml optimizer_runs to 200 to shrink code size * Now using 'upperLookupRecent' for checkpointed quorum values * Use 'clock()' instead of 'block.timestamp' when setting checkpointed quorum * Also use clock() for setQuorum emit * Consistent use of uint256 for quorum publicly, uint208 internally * Removed superflous cast * Fixed test to use clock for quorum checkpoint * Apply suggestions from code review Notice and addition of "virtual" to functions where it was missing. Co-authored-by: Ed Mazurek <[email protected]> --------- Co-authored-by: Ed Mazurek <[email protected]>
Resolves #15