When there's a 1x Long open position, totalAmountBefore
is calculated inside _mint()
in the following manner:
However the vault could also be holding some collateral tokens at the time which should contribute to this calculation. These collateral tokens could have arrived due to:
Fees
ADL (Auto deleveraging) by GMX
Partial Liquidations
These need to be accounted for, else the depositor receives a greater share ratio than intended.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
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.