Deposit is marked as payable to take in fee to process orders passing in msg.value when the vault is Closed will cause the fee to be stuck in the Perpvault.
See below
The pay execution fee directly forward the fee from the user to the GMX proxy for use
Hence there is a need to prevent msg.value from being passed into a closed vault as it is not retrievable
Stucked fee in Perp Vault
Manual Review
Nest a check to revert deposits that pass in msg.value when the vault is closed.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.