Calculate in _distributeRewards()
when reward for voter For
not correct.
When proposal pass with For result, reward should be distribute to the For
voters, but formula to calculate in contract count all voters (totalVotes).
Test below will demonstration reward distribute not correct, For
votes receiver less reward and remain token will stuck in contract
For
votes receiver less reward and remain token will stuck in contract
Manual review & foundry
Reward distribute for voter For
should calculate with formula: rewardPerVoter = totalRewards / totalVotesFor
and also update round formula : rewardPerVoter = Math.mulDiv(totalRewards, 1, totalVotesFor, Math.Rounding.Ceil);
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.