Moonwell

Moonwell
DeFiFoundry
15,000 USDC
View results
Submission Details
Severity: high
Invalid

transfer of no return values from usdt tokens `MErc20DelegateMadFixer :: sweepAll`

Summary

usdt transfer does not have any return values on main-net eth, its a void function

Vulnerability Details

if you are expecting a true or false from this line bool success = token.transfer(sweeper, token.balanceOf(address(this))) it will always revert
and funds(usdt) will not get send. it will always revert before the require statement

Impact

function will revert if sending usdt , funds will be locked in contract ,loss of funds. can cause A denial of service

Tools Used

manual

Recommendations

using OpenZeppelin’s SafeERC20 versions with the safeTransfer and safeTransferFrom functions that handle the return value check as well as non-standard-compliant tokens.

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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