Open hats-bug-reporter[bot] opened 3 months ago
Why do you want to transfer zero token?
non-standard ERC20 tokens are OOS, Invalid
Sorry, but what it means OOS
non-standard ERC20 tokens are OOS
OOS (out of scope)
And btw, what is the impact of the issue? You couldn't transfer 0 tokens?
It wouldn`t recover if send 0 amount
Github username: @Jelev123 Twitter username: zhulien_zhelev Submission hash (on-chain): 0x4da96444a2869757dd249176b0e9b2dede027bcd395af977e99c89f4b4a2a88b Severity: medium
Description: Description\ In erc20Recover is used
safeTransfer
. But some tokens revert when transferring a zero value amount.Recommendation
require(amount > 0 );
beforeIERC20(token_).safeTransfer(recipient_, amount);