GMX V2 is Mathematically Insolvent Two independent critical vulne
The report claims that GMX V2's accounting adds a virtual liability (lentPositionImpactPoolAmount) into the pool value used to price GM tokens, making the pool mathematically insolvent whenever that liability is positive. An attacker could exploit this to inflate the GM token price and drain physical assets exceeding their deposit.
Published on medium.com
I am a security researcher who contacted the GMX Core Team directly via ticket #0116 on May 7, 2026.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the code adds a liability (virtual debt) to the pool's asset value when calculating the token price, instead of subtracting it or excluding it.
Impact
The pool becomes physically insolvent when the virtual debt is positive, allowing early withdrawers to drain real collateral and leaving late liquidity providers with worthless tokens; the report claims functional proofs of concept but does not show them.
What the attacker needed
LentPositionImpactPoolAmount > 0; attacker can create positive price impact
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
GMX is a trading platform where people deposit money into a pool and receive tokens representing their share. The report says the code mistakenly counts money the platform owes to traders as if it were real money in the pool, so the share price looks higher than the actual cash. This means early people to withdraw get real money while later ones are left with tokens that are worth less than advertised.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.