40,000 USDC
View results
Submission Details
Severity: gas
Valid

Need to check for zero value tranfer of ERC20 tokens.

Summary

Need to check for zero value transfer of ERC20 tokens.

Vulnerability Details

Some tokens can revert if the amount being transferred is 0. So, it's important to check whether the amount being transferred is more than 0. More info - https://github.com/d-xo/weird-erc20#revert-on-zero-value-transfers

Impact

Transactions revert on zero-value transfers for certain ERC20 tokens.

Tools Used

Manual review

Recommendations

Add a sanity check to see whether the amount is greater than 0 before transferring it.

Support

FAQs

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