GMXVault
contract deployment will revert with UNI
token.
The protocol uses UNI
token as one of its vault tokens, and when the GMXVault
contract is deployed; it approves the depositVaults,lendingVaults and exchange router (3rd-party contracts) 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; so this will prevent deployment of such vaults as it approves UNI token with a large amount.
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 other contracts on it.
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.