Before any position is opened, the first users to deposit funds into the vault will get shares directly minted, without the keeper having to open the position into GMX. This will be only once the keeper create the deposit order to GMX that fees will be charged.
The keeper will have to pay for the fees on its own expenses, and all first depositors will have deposited without fees charged.
On a first deposit, a vault will have its positionIsClosed
state as true, which means the if (positionIsClosed)
case will be executed L233-L236
, and shares will be minted based on the deposited amount, which no fees charged:
After that, the keeper will have to call run()
to effectively deposit the funds into GMX either through _runSwap >> _doGMXSwap
or _createIncreasePosition
which creates a GMX position, and will have to bear the price on its own:
Keeper will have to pay for GMX deposit fees for the users.
Charge a fee to the first depositors before a position is opened.
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.