The protocol asks for odd numbers of voters but it can be bypassed by adding the same user multiple times.
VotingBooth::constructor
line 95
this only checks the length of the given array but voters loop does not take into account of same users in the array
The requirement of odd number of voters can be bypassed.
add test VotingBoothTest.t:setUpWithEvenUsers
The issue does not break anything as the protocol already handles equal amount of votesFor and votesAgainst. so suggestion number 1 would be removing the requirement of odd number of voters.
If the protocol still wants to use odd number of voters this can be fixed by adding a check on VotingBooth::constructor
line 101
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.