Sparkn

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

Contracts do not work with fee-on-transfer tokens

Summary

Contracts do not work with fee-on-transfer tokens

Vulnerability Details

Some tokens take a transfer fee (e.g. STA, PAXG), some do not currently charge a fee but may do so in the future (e.g. USDT, USDC).

Impact

Instances (2):

File: src/Distributor.sol
147: erc20.safeTransfer(winners[i], amount);
164: token.safeTransfer(STADIUM_ADDRESS, token.balanceOf(address(this)));

147, 164

Tools Used

Personal bot

Recommendations

Support

FAQs

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