20,000 USDC
View results
Submission Details
Severity: medium

Return values of ERC20 transfer and transferFrom are not checked

Summary

Return values of ERC20 transfer and transferFrom are not checked.

Vulnerability Details

In the contract Lender, the return values of ERC20 transfer and transferFrom are not checked to be true, which could be false if the transferred tokens are not ERC20-compliant. In that case, the transfer fails without being noticed by the calling contract.

Tools Used

Manual Review

Recommendations

Recommend using the SafeERC20 library implementation from Openzeppelin and call safeTransfer or safeTransferFrom when transferring ERC20 tokens.

Support

FAQs

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

Give us feedback!