From fb29abb6b30be664f9ff7641ad00798436351608 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Wed, 27 Mar 2024 20:01:25 -0500 Subject: [PATCH] Lower minimum quorum --- ethereum/contracts/DAO.sol | 2 +- ethereum/contracts/Proposal.sol | 2 +- ethereum/test/DAO.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ethereum/contracts/DAO.sol b/ethereum/contracts/DAO.sol index bb02621..3edef70 100644 --- a/ethereum/contracts/DAO.sol +++ b/ethereum/contracts/DAO.sol @@ -63,7 +63,7 @@ contract DAO is ERC20("Reputation", "REP") { uint public constant minDuration = 1; // 1 second uint public constant maxDuration = 365_000_000 days; // 1 million years - uint public constant minQuorumPPB = 333_333_333; // Parts per billion + uint public constant minQuorumPPB = 100_000_000; // Parts per billion event PostAdded(uint postIndex); event ValidationPoolInitiated(uint poolIndex); diff --git a/ethereum/contracts/Proposal.sol b/ethereum/contracts/Proposal.sol index a66c6c7..b48671c 100644 --- a/ethereum/contracts/Proposal.sol +++ b/ethereum/contracts/Proposal.sol @@ -87,7 +87,7 @@ contract Proposals is DAOContract { // 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]]; + uint[2][3] referendaQuora = [[1, 10], [1, 2], [1, 3]]; /// Internal convenience function to wrap our call to dao.initiateValidationPool /// and to emit an event diff --git a/ethereum/test/DAO.js b/ethereum/test/DAO.js index 297452e..a70786a 100644 --- a/ethereum/test/DAO.js +++ b/ethereum/test/DAO.js @@ -84,7 +84,7 @@ describe('DAO', () => { }); it('should not be able to initiate a validation pool with a quorum below the minimum', async () => { - const init = () => initiateValidationPool({ quorumNumerator: 1, quorumDenominator: 4 }); + const init = () => initiateValidationPool({ quorumNumerator: 1, quorumDenominator: 11 }); await expect(init()).to.be.revertedWith('Quorum is below minimum'); });