15,000 USDC
View results
Submission Details
Severity: gas
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 2 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.