Sparkn

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

Transfer failure for all if transfer fails for 1 winner

Summary

The _distribute function contains a vulnerability where if any token transfer within the distribution loop fails, the entire transaction will be reverted.

Vulnerability Details

The vulnerability arises due to the lack of error handling in the token transfer loop. If a one transfer fails for any reason the whole transaction will be reverted if this happens other users wont be able to receive their reward amount.

Impact

user wont receive the rewards they deserve

Tools Used

Manual review

Recommendations

consider adding try catch method if one token transfer fails loop should continue iteration for the rest of the users

Support

FAQs

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