The `createContest()` function does not validate that the `players` and `rewards` arrays have matching lengths, that the sum of rewards equals `totalRewards`, or that the arrays are non-empty. This can lead to creation of invalid Pot contracts with mismatched data, causing incorrect reward distribution or DoS conditions.
Without validation, a Pot can be created where players and rewards arrays are misaligned, or where the total rewards don't match the sum of individual rewards, leading to accounting errors.
Likelihood:
* This occurs when the owner creates a contest with invalid input parameters
* The issue manifests when arrays are mismatched or reward sums don't align
Impact:
* Invalid Pot contracts can be created, leading to incorrect reward distribution
* Players may not receive their intended rewards
* Accounting errors can occur if sum of rewards doesn't match totalRewards
* DoS conditions if arrays are empty or have mismatched lengths
* Funds can be locked or incorrectly distributed
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.