Introduction of fees in USDT removes protocol's ability to support new pools / add USDT to existing pools.
Although fee on transfer tokens are not supported, USDT may in fact introduced fees in the future.
If such an occurence happens, users will lose the ability to create new contigent pools or add liquidity to existing contigent pools utilizing USDT.
When users tries to create new pools or add liquidity, the AaveDIVAWrapper._handleTokenOperations
is called. In the event where USDT implements a fee in the future, USDT (i.e. _collateralAmount
) supplied by the user will differ from the actual USDT supplied to the wrapper contract. This will in turn cause the supplying of the collateral to the AaaveV3Pool
to fail.
When fees are introduced to USDT, adding liquidity to existing USDT contigent pools or creating new pools utiziling USDT will be impossible.
Consider caching the balance of the Wrapper contract before and after the collateral token is transferred and use the difference in collateral amount to supply to the Aave pool to receive Atokens in returned.
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.