The createContest
function does not validate that the lengths of the players
and rewards
arrays are the same.
The function creates a new Pot
contract using the players
and rewards
arrays without ensuring their lengths match, which can lead to incorrect initialization.
Mismatched array lengths can cause the Pot
contract to be initialized with inconsistent data, potentially leading to incorrect or erroneous behavior.
Manual Review
Add validation to ensure that the lengths of players
and rewards
arrays are equal before creating the Pot
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.