20,000 USDC
View results
Submission Details
Severity: medium

SafeTransfer/safetranferFrom should be used in place of transfer/transferFrom

Summary

SafeTransfer should be used in place of Transfer for Solidity contracts to ensure robust security and error handling. Unlike the basic Transfer function, SafeTransfer incorporates safeguards against potential smart contract vulnerabilities, such as reentrancy attacks and unexpected token loss. By automatically validating the recipient's ability to receive tokens and reverting transactions in case of failures

Vulnerability Details

Since loanToken is controllable, it cannot be ruled out that the token does not meet the standard erc20 standard, and a secure transfer function should be used

Impact

SafeTransfer/safetranferFrom should be used in place of transfer/transferFrom

Tools Used

vscode

Recommendations

use safetransfer/safetransferfrom

Support

FAQs

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