TSender

Cyfrin
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Protocol won't work with fee on transfer tokens

Summary

The protocol will not work with fee on transfer tokens.

Vulnerability Details

Fee on transfer tokens charge a fee on every transfer. After the tokens get sent from the caller to the contract, the contract will have less balance than totalAmount. Because of this there won't be enough balance in the contract to execute all of the transfers to the recipients, making the airdropERC20 function unusable with such tokens.

Impact

There are ERC20 tokens that charge a fee for every transfer() / transferFrom(). In the case of using such tokens, the protocol will not function as intended.

Tools Used

Manual review

Recommendations

It is recommended to find the balance of the current contract after the the tokens get sent from the caller to the contract to see how much tokens were received, and appropriately distribute them between the recipients.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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