Sparkn

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

If one winner is blacklisted no one can get rewards

Summary

Tokens like USDC and USDT have blacklists and will revert if transfers are made to blacklisted users.

Vulnerability Details

If an address of a winner is blacklisted from either USDC or USDT the highlighted code will revert and no winner will get rewards.

Impact

Low impact since it's not that likely for an address to be blacklisted. And the caller can call the function again without the address of the blacklisted winner or with another address provided by the blacklisted winner.

Tools Used

Manuel Review

Recommendations

Implement a function for winners to pull their funds from the protocol, rather than using a push method of distributing rewards. Or implement a check if an address of the winner is blacklisted if the token used is USDC or USDT

Support

FAQs

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