usdt transferfrom 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 require(token.transferFrom(msg.sender, address(this), amount), "transfer in failed");
it will always revert and funds(usdt) will not get send.
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.