usdt transfer does not have any return values on main-net eth, its a void function
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
function will revert if sending usdt , funds will be locked in contract ,loss of funds. can cause A denial of service
manual
using OpenZeppelin’s
SafeERC20
versions with the safeTransfer
and safeTransferFrom
functions that handle the return value check as well as non-standard-compliant 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.