20,000 USDC
View results
Submission Details
Severity: medium
Valid

Amounts should be checked for `0` before calling a `transfer`

Summary

Vulnerability Details

According to the fact that EIP-20 states that zero-valued transfers must be accepted.

Checking non-zero transfer values can avoid an expensive external call and save gas.
While this is done at some places, it’s not consistently done in the solution.

There are 21 instances of this issue:

Impact

Tools Used

Recommendations

Consider adding a non-zero-value check at the beginning of function.

Support

FAQs

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