AaveDIVAWrapperCore::_registerCollateralToken
approves the maximum amount of collateralToken to be spent by the aaveV3Pool
. The tokens like UNI
or COMP
will revert when approving the max tokens.
Both the tokens contain this piece of code which reverts when the amount exceeds 96 bits.
This functionality can revert for tokens that doesn't suppport max unit256
approval, If this occurs, the entire batch of tokens awaiting approval will also fail.
Manual Review
I would suggest approve only the necessay amount of token to the aaveV3Pool
instead of the type(uint256).max
amount.
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.