The sum of the rewards array should be checked to be equal to totalAwards (Pot.sol). totalAwards is used to set i_totalRewards and remainingRewards.
If there is a mismatch between the rewards[] and the totalAwards, the remainingRewards variable will potentially be too high or too low, resulting in an accounting problem. This will potentially distribute incorrect amounts to the players.
Manual Review
Implement a check in the constructor to ensure that the sum rewards[] == totalAwards.
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.