GMXTrove
contract deployment will revert with UNI
token.
In GMXVault
contract: whenever a deposit or withdrawal is made by the user, a check is made to transfer any reidual tokens locked in the vault to the GMXTrove
contract to prevent it from being considered as part of depositor's assets.
Each vault has a trove contract deployed for it, where the trove contract approves the vault on its tokenA & tokenB balnace so that the vault can manage and compounds them.
The protocol uses UNI
token as one of its vault tokens, and when the GMXTrove
contract is deployed; it approves the vault with a type(uint256).max
value on this token.
But UNI
token doesn't support approvals of type(uint256).max
and will revert when approving this value as it accepts a maximum allowance of type(uint96).max
only.
Troves that are deployed for vaults with either of its tokens is UNI
will not be deployed.
Manual Review.
Check if any of the vault tokens pair is UNI
token, and use a maximum allowance of type(uint96).max
when approving the vault.
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.