Tame Foggy Pony
Medium
No response
safeApprove()
does not handle tokens such as USDT that require a non-zero to zero approval, it only handles token traits such as not returning a boolean. As seen, this is expected by the protocol, thus this should be considered valid:
///@notice oz safeIncreaseAllowance controls for tokens that require allowance to be reset to 0 before increasing again
No response
No response
- A target swapper is approved for USDT but the full allowance is not used up
- For a second swap, we would revert here:
tokenIn.safeApprove(target, amountIn);
- This results in DoS
DoS
No response
Use forceApprove()
instead