Close the proposal when both s_votersFor and s_votersAgainst are equal.
The calculation in the vote function is incorrect because the if statement is valid when s_votersFor and s_votersAgainst are equal. This calculation is incorrect because it checks for all votes, not for true or false values:
Closing a proposal with equal votes will make the protocol unusable.
Change test contract to work with 3 or 7 accounts and add following test case.
This test shows how two addresses vote; the first address votes true, the second address votes false, and the booth.isActive() function returns false. There is no 51% maturity, but the contract closes the proposal.
Manual Review
Check for s_votersFor.length and s_votersAgainst.length to be different.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.