Parameterize quorum

This commit is contained in:
Ladd Hoffman 2024-03-27 20:00:46 -05:00
parent 1ae1a336f5
commit 078df362ec
1 changed files with 7 additions and 5 deletions

View File

@ -44,9 +44,6 @@ contract Proposals is DAOContract {
event ProposalFailed(uint proposalIndex, string reason);
event ProposalAccepted(uint proposalIndex);
uint[3] referendaBindingPercent = [0, 1, 100];
bool[3] referendaRedistributeLosingStakes = [false, false, true];
constructor(DAO dao) DAOContract(dao) {}
function propose(
@ -87,6 +84,11 @@ contract Proposals is DAOContract {
attestation.amount = amount;
}
// Sequences of validation pool parameters
uint[3] referendaBindingPercent = [0, 1, 100];
bool[3] referendaRedistributeLosingStakes = [false, false, true];
uint[2][3] referendaQuora = [[1, 3], [1, 2], [1, 3]];
/// Internal convenience function to wrap our call to dao.initiateValidationPool
/// and to emit an event
function initiateValidationPool(
@ -103,8 +105,8 @@ contract Proposals is DAOContract {
}(
proposal.postIndex,
proposal.referenda[referendumIndex].duration,
1,
3,
referendaQuora[referendumIndex][0],
referendaQuora[referendumIndex][1],
bindingPercent,
redistributeLosingStakes,
true,