https://github.com/Cyfrin/2024-08-MyCut/blob/main/src/Pot.sol#L22C5-L35C6
There can be oversight where the owner mistakenly input more rewards in the rewards array than in the players array; implying that the rewards.length will be greater than players.length
. This oversight can especially happen where there is a large number of data than expected. There is no significant effect of this as the variable rewards.length
was not used in any section of the code. However, an external contract reading into this variable might use it wrongly.
Manual Review
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.