-
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 GovernorVotesCompQuorumFraction for settable quorum #13
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
c9e24c7
to
2e6cb9e
Compare
1fbf1f2
to
741c4ea
Compare
ff62acd
to
741c4ea
Compare
2e6cb9e
to
252d828
Compare
741c4ea
to
ee6f28a
Compare
252d828
to
50458d4
Compare
ee6f28a
to
56e85e0
Compare
50458d4
to
212a699
Compare
56e85e0
to
021894e
Compare
1aaa4b1
to
1deaf32
Compare
021894e
to
265fcc1
Compare
265fcc1
to
5b37a39
Compare
5b37a39
to
f4ac9a3
Compare
f4ac9a3
to
b83b9c3
Compare
b83b9c3
to
9500352
Compare
@@ -0,0 +1,125 @@ | |||
// SPDX-License-Identifier: MIT | |||
// (Based on OpenZeppelin governance/extensions/GovernorVotesQuorumFraction.sol) |
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 would probably be better to use a permalink to the OpenZeppelin contract
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: 34b7f01
function _updateQuorumNumerator(uint256 newQuorumNumerator) internal virtual { | ||
require( | ||
newQuorumNumerator <= quorumDenominator(), | ||
"GovernorVotesQuorumFraction: quorumNumerator over quorumDenominator" |
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.
Does this need to say "GovernorVotesQuorumCompFraction"?
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: 34b7f01
* quorum | ||
* expressed as a fraction of the total supply. | ||
*/ | ||
abstract contract GovernorVotesCompQuorumFraction is GovernorVotesComp { |
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.
Although obvious it may be good to explicitly say this line has changed from the original.
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: 34b7f01
Radworks has chosen to go with a fixed, constant quorum. |
Added GovernorVotesCompQuorumFraction for settable quorum
Also added test for setting quorum numerator