Initial approve calls during collateral registration may fail for tokens requiring allowance resets (e.g., USDT).
In _registerCollateralToken, approve(_aaveV3Pool, type(uint256).max) is used. Tokens like USDT on Ethereum require allowance to be reset to zero before approval, causing the transaction to revert.
Collateral tokens requiring allowance resets cannot be registered, limiting protocol compatibility.
Manual Review
Replace approve with safeIncreaseAllowance in AaveDIVAWrapperCore._registerCollateralToken:
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.