Sparkn

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

Out-of-gas issue is arrays winners and percentages get too big

Summary

If arrays winners and percentages get too big the function can revert and the winners will not get their rewards

Vulnerability Details

The distribute function calls _distribute which uses safeTransfer to transfer tokens to the winners. If the arrays get to big the safeTransfer will use up too much gas and revert with out-of-gas error.

Impact

Winners will not be able receive rewards.

Tools Used

Manuel Review

Recommendations

Bound the length of the arrays winners and percentages

Support

FAQs

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