The reward to be sent to each FOR voter is divided by the entire population of voters.
If the count of voters against s_votersAgainst exceeds zero, it implies that the total number of votes will surpass the count of votes in favor totalVotes > totalVotesFor. Consequently, the full allocation of the reward will not be evenly divided, as the reward per voter rewardPerVoter is calculated as the total rewards divided by the total votes. This circumstance results in a portion of ETH being held within the contract whenever rewards are distributed.
the proportion of eth associated to AGAINST voter will definitely be stuck into the contract as the reward sent to FOR voters will not cover 100% of the reward.
Manual Review / Foundry
We recommand dividing totalReward by totalVotesFor variable instead of totalVotes in order to avoid eth to be stuck into the contract.
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.