Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

Incompatibility with No Revert on Failure tokens

Vulnerability Details

The protocol is using transfer / transferFrom instead of safeTransfer / safeTransferFrom for all ERC20 transfers. The return value of the transfer is not checked so it is possible that the transfer fails silently (returning false) and the rest of the function executes normally which would lead to loss of funds for the protocol and users when the system assumed the funds have been transferred but they have not.

[!NOTE]
No Revert on Failure tokens are compliant with the ERC20 standard and thus deemed in-scope for this audit. The EIP-20 only requires tokens to return a bool, not to revert on transfer failure: https://eips.ethereum.org/EIPS/eip-20#transfer

Impact

Loss of funds for the protocol and users.

Recommendations

Use SafeERC20 for all ERC20 transfers.

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

[KNOWN] - Low-35 Unsafe use of transfer()/transferFrom() with IERC20

Support

FAQs

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