executeOperation will revert if _flashToken is USDT
Summary
executeOperation will revert if _flashToken is USDT
Vulnerability Detail
USDT will revert if the current allowance is greater than 0 and an non-zero approval is made. There are multiple instances throughout the contracts where this causes issues.
mgf15
medium
executeOperation
will revert if _flashToken is USDTSummary
executeOperation
will revert if _flashToken is USDTVulnerability Detail
USDT will revert if the current allowance is greater than 0 and an non-zero approval is made. There are multiple instances throughout the contracts where this causes issues.
Impact
revert if asset is USDT due to lack of approve 0.
Code Snippet
https://github.com/sherlock-audit/2024-04-teller-finance/blob/defe55469a2576735af67483acf31d623e13592d/teller-protocol-v2-audit-2024/packages/contracts/contracts/LenderCommitmentForwarder/extensions/FlashRolloverLoan_G5.sol#L156C5-L219C6
Tool used
Manual Review
Recommendation
Utilize the OZ safeERC20
Duplicate of #140