Lower minimum quorum
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 42s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 42s
Details
This commit is contained in:
parent
078df362ec
commit
fb29abb6b3
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue