Incidents

Mango Markets: spot price manipulation drained protocol liquidity

Illustration: Oracle Manipulation

Published Oct 20, 2026

Project
Mango Markets
Chain
Solana
Date
Oct 11, 2022
Loss
$116.00M
Class
Oracle Manipulation
Basis
Project post-mortem or audit firm analysis

What happened

In October 2022, Mango Markets V3 on Solana lost approximately $116 million. The protocol's lending module relied on the spot price of the MANGO token to value collateral. Because the MANGO-PERP market had low liquidity and trading volume, the spot price was pushed from roughly $0.0382 to $0.91 per unit. This artificial inflation allowed a second account to book an unrealized profit of about $423 million, which was then used as collateral to borrow $116 million, draining the protocol's available liquidity. When the spot price subsequently collapsed back to around $0.02, the borrowed funds were already gone.

Why it was possible

The core defect was trusting a manipulable spot price from a thin order book as the sole source of truth for collateral valuation. The protocol did not cross-reference the MANGO token price against a time-weighted average or an independent oracle. In a low-liquidity environment, a single participant can shift the spot price dramatically within one transaction or block. Because the lending logic evaluated borrowing power against this instantaneous, unverified price, artificially inflated collateral translated directly into real withdrawals. The absence of deviation bounds or staleness checks meant the system treated a manipulated quote as legitimate.

How to protect your protocol

Check your own code

Sources

How this was prepared: compiled from the sources above with the help of automated tools, then reviewed by the Foothold security team before publication.

Give Atlant a task Could the same thing happen in your code? Get it checked →