EIP20 standard:
Returns a boolean value indicating whether the operation succeeded.
function transfer(address to, uint256 amount) external returns (bool);
Checking the return value is a requirement, as written in the EIP-20 specification:
"Callers MUST handle false from returns (bool success). Callers MUST NOT assume that false is never returned!"
Details
https://github.com/SunWeb3Sec/DeFiVulnLabs/blob/main/src/test/Returnvalue.sol
This could lead to unexpected behaviour in case of failure.
manual review
Correctly implement the function to ensure that there are no problems.
You can also use OpenZeppelin's SafeERC20 library implementation and call safeTransfer or safeTransferFrom when transferring ERC20 tokens.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.