Parameterize quorum
This commit is contained in:
parent
1ae1a336f5
commit
078df362ec
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue