TSender

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

Protocol will not work with erc20s that revert on 0 amount transfer

Summary

Protocol will not work with erc20s that revert on 0 amount transfer.

Vulnerability Details

Some tokens (e.g. LEND) revert when transferring a zero value amount. Even if the areListsValid function checks whether there are 0 amounts, the airdropERC20 does not. This means that if 0 amounts get into the amounts array, the function will revert in the case of using such tokens.

Impact

Function could revert due to 0 amount transfer.

Tools Used

Manual review

Recommendations

Using the areListsValid function in airdropERC20.

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.