20,000 USDC
View results
Submission Details
Severity: medium

Unhandled return value of transferFrom and transfer in many instances could lead to fund loss.

Summary

Unhandled return value of transferFrom and transfer in many instances could lead to fund loss.

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 or use safe wrapper functions implementing return value/data checks to handle these failures

Impact

Some implementations of transfer and transferFrom could return ‘false’ on failure instead of reverting. It is safer to wrap such calls into require() statements or use safe wrapper functions implementing return value/data checks to handle these failures

Tools Used

Manual Review

Recommendations

It should wrap such calls into require() statements or use safe wrapper functions implementing return value/data checks to handle these failures

Support

FAQs

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