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

Unsafe ERC20 transfer

Summary

This finding focusses on the security of an ERC20 smart contract's the transfer functionalities

Vulnerability Details

ERC20 implementations are not always consistent. Some implementations of transfer and transferFrom could return ‘false’ on failure instead of reverting. It is safer to wrap such calls into require() statements to these failures. Unsafe transfer and transferFrom calls were found in the following locations:

Impact

Some of the tokens do not revert on failed transfer and transferFrom calls which could lead to funds insolvency.

Tools Used

  • Manual review

Recommendations

Consider using OpenZepplin's safeTransfer and safeTransferFrom functions.

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.