The willPositionCollateralBeSufficient
function uses incorrect parameter.
contracts/libraries/gmx/MarketUtils.sol#L31
The willPositionCollateralBeSufficient
function uses prices.shortTokenPrice
as collateralTokenPrice
. It should actually be prices.indexTokenPrice
.
Errors in calculating the willPositionCollateralBeSufficient
function return value may cause the user to read the wrong position status during the position reduction operation, which may result in asset losses for the user.
Recommended fix:
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.