Winners Length may cause failure
The _distribute function iterates over the winners and percentages arrays without checking their length. If these arrays are too long, the function could require more gas than the block gas limit, causing the transaction to fail.
Gas Limit Issues
Denial of Service (DoS)
Economic Inefficiency
Manual Analysis
To mitigate this vulnerability, it's recommended to limit the length of the winners and percentages arrays or implement a mechanism to handle large arrays in multiple transactions.This solution ensures that the function will not consume excessive gas, even if the 'winners' and 'percentages' arrays are overly extensive.
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.