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

Instantiate 20/10/5 percent quorum decay #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/examples/DecayingQuorumRules.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ contract DecayingQuorumRules is Rules {
uint nay = board.positionWeightOf(_proposalID, 0);
uint yea = board.positionWeightOf(_proposalID, 1);
uint quorum = StandardToken(token.token()).totalSupply();
uint divisor = 20;
uint divisor = 5;

if (block.number > startBlock + 5000) {
divisor = 40;
divisor = 10;
}

if (block.number > startBlock + 10000) {
divisor = 60;
divisor = 20;
}

if((yea + nay) > quorum / divisor && yea > nay) {
Expand Down
6 changes: 3 additions & 3 deletions contracts/examples/LiquidDemocracyRules.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ contract LiquidDemocracyRules is Rules {
}

uint quorum = StandardToken(token.token()).totalSupply();
uint divisor = 20;
uint divisor = 5;

if (block.number > startBlock + 5000) {
divisor = 40;
divisor = 10;
}

if (block.number > startBlock + 10000) {
divisor = 60;
divisor = 20;
}

if((yea + nay) > quorum / divisor && yea > nay) {
Expand Down