Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low
Valid

Winners Length may cause fail transactions

Summary

Winners Length may cause failure

Vulnerability Details

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.

Impact

Gas Limit Issues
Denial of Service (DoS)
Economic Inefficiency

Tools Used

Manual Analysis

Recommendations

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.