The withdraw
function allows users to withdraw a specified token amount from their balance, provided certain conditions are met. It operates differently depending on whether the token is a native token (like Ether) or an ERC20 token.
the problem with _safe_transfer_from
function , If the token is USDT, the function will revert. USDT does not return a value upon transfer, which can cause the safe transfer method to fail and trigger a revert.
user can't withdraw tokens
Manual Review
use OZ SafeERC20
I believe the issues and duplicates do not warrant low severity severity as even if the call to transfers returns false instead of reverting, there is no impact as it is arguably correct given there will be insufficient funds to perform a rescue/withdrawal. This will not affect `tillIn()` as there are explicit balance [checks that revert accordingly](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/TokenManager.sol#L255-L260) to prevent allowing creation of offers without posting the necessary collateral
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.