If a high number of users win the contest, then you must disburse money to a high number of addresses.
If the number of winners is too high, the function call that loops through both the percentages array and the winners array will cause the tx to fail via out of gas
.
In the case of a high number of winners, potentially no one would win? Or the organizer
would have to only reward part of the winners.
Manual Review
Limit the length of the arrays so that there must be a maximum number of winners. Another solution would be to disallow zero value inside of the percentages array, this would in turn implicitly create a maximum number of winners since the percentage values have to add up to 10000 - COMMISION_FEE
.
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.