Neither createContest nor the Pot constructor validates that players.length == rewards.length. If rewards has fewer entries than players, the last players get mapped to 0 rewards and can never claim. If rewards has more entries, the extra rewards are allocated to address(0) and permanently locked.
Likelihood:
Human error in passing mismatched arrays is common
Will silently succeed with wrong state rather than reverting
Impact:
Players with index beyond rewards.length get zero allocation
Those players can never claim and their share is locked
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.