MNGO
MNGO ยท MANGO MARKETS

What is Mango Markets?

Trading$114M Exploit
Last verified: May 2026
This page documents what Mango Markets is and how it works โ€” based on official Mango documentation and documented public records. Nothing here is financial advice. Always do your own research.

๐Ÿ‘‹ New to this? Just start reading at the top โ€” it begins in plain English and gets more detailed as you scroll. Jump to any level:

๐ŸŸข The simple version

Plain English โ€” no jargon. Start here.

One sentence that captures it

Mango Markets is a Solana-based decentralised trading platform offering spot and perpetual futures with cross-margined accounts, known both for its ambitious cross-margined design and for suffering a $114 million oracle manipulation exploit in October 2022 โ€” one of the most documented DeFi exploits in history.

What Mango Markets built

Mango Markets launched in 2021 with an ambitious goal: a cross-margined trading platform where a single account's profit from one position can offset losses in another โ€” replicating the risk management model of professional trading desks, on-chain, on Solana. It offered spot trading, perpetual futures, and lending in a single unified account, all backed by Solana's sub-second finality and low fees.

The cross-margin model meant that collateral deposited in one market could secure positions across all markets simultaneously. This capital efficiency attracted professional traders and DeFi enthusiasts seeking a CEX-like experience on-chain.

The $114M exploit โ€” October 2022

In October 2022, a trader named Avraham Eisenberg publicly claimed responsibility for what he called a "highly profitable trading strategy" that extracted approximately $114 million from Mango Markets. The exploit: Eisenberg used two wallets to simultaneously build a massive long position in MNGO perpetuals from one wallet while the other wallet took the other side. He then used one wallet to buy enormous amounts of MNGO on spot markets, driving the MNGO price up dramatically. Mango's oracle, reading this inflated price, showed his long perpetual position as massively profitable. He then borrowed against these "profits" โ€” withdrawing nearly all of Mango's treasury assets before the oracle price collapsed back to fair value.

Eisenberg was arrested in December 2022 and convicted in April 2024 of wire fraud and commodity manipulation by a US federal jury. This is a matter of public legal record.

Mango v4 and recovery

Mango rebuilt as v4 with improved oracle configurations, collateral restrictions, and security audits. The MNGO DAO voted to use treasury funds to partially compensate affected users. MNGO supply: 10 billion.

Is it legal in India?

Yes. MNGO is a VDA under Indian law. 30% tax and 1% TDS apply. See India regulation.

๐ŸŸก A bit more detail

For when you want to go a little deeper.

Mango v4 architecture

Mango v4 rebuilt the protocol with several improvements following the exploit. The new oracle system uses a combination of Pyth prices and Switchboard oracles with tighter staleness requirements. Position concentration limits prevent any single account from accumulating positions large enough to move oracle prices. The lending programme is isolated from the trading programme โ€” borrowed funds cannot be used to amplify trading positions beyond predefined limits. The v4 architecture separates spot, perpetuals, and lending into distinct modules with clear accounting between them.

What it's used for in real life

Mango Markets v4 re-launched as a professional cross-margin trading platform. Traders use Mango for leveraged perpetual futures on major assets (SOL, BTC, ETH) within a unified account that also earns lending yield on idle collateral. Mango's DAO governance is one of the most active on Solana โ€” community proposals regularly address fee changes, new market listings, and risk parameter adjustments. Despite the 2022 exploit, Mango maintained a developer community that rebuilt the protocol and continues to operate it as community infrastructure.

The exploit mechanics โ€” documented for transparency

The 2022 exploit is documented in full because it is one of the most instructive DeFi exploits in history. The mechanism: oracle price manipulation + over-collateralisation against artificial paper profits. The vulnerability: Mango allowed borrowing against unrealised perpetual PnL, and the oracle price could be temporarily inflated by a sufficiently large spot purchase. The fix: separating unrealised PnL from collateral eligibility and adding circuit breakers that detect anomalous price movements before allowing large borrows against newly inflated positions.

How people evaluate this

Key Mango metrics: open interest, daily trading volume, TVL, oracle configuration audits, and DAO governance activity. Mango competes with Drift Protocol on Solana for perpetual futures market share. The 2022 exploit made Mango's oracle design a case study โ€” the improvements in v4 are evaluated by independent security researchers as significantly more robust. Live data: CoinGecko ยท Mango Markets.

๐ŸŸฃ The full technical picture

For the technically curious.

Cross-margin accounting on Solana

Mango's cross-margin system maintains a single account value for each user across all positions. Account equity = sum of (deposited assets at current price) + sum of (unrealised PnL from all open perpetual positions). The account's "maintenance margin requirement" = sum of (open_position_size ร— maintenance_margin_rate) for each market. If account equity falls below maintenance margin requirement, liquidation is triggered. In v4, unrealised PnL from perpetuals has a reduced contribution to account equity (a "PnL weight" less than 1.0) โ€” directly addressing the v1 exploit vector where 100% of paper profits could be borrowed against.

Source: Mango Markets documentation. docs.mango.markets ยท Mango GitHub: github.com/blockworks-foundation/mango-v4

The MNGO DAO and governance

Mango Markets is governed by the Mango DAO โ€” MNGO token holders vote on all protocol decisions. After the 2022 exploit, the DAO voted on a controversial proposal: to use the DAO treasury to partially compensate affected users in exchange for Eisenberg returning a portion of the stolen funds. This governance vote โ€” approving a settlement that many viewed as coercion โ€” became a landmark case for on-chain governance in crisis situations. The DAO ultimately approved the settlement, recovering approximately $67M of the $114M, with the remainder subsequently addressed through the criminal prosecution.

Technical detail

Mango v4 uses a "stale slot" oracle protection: each price feed has a maximum slot age (Solana slots, ~400ms each) beyond which the price is considered stale. For spot markets, stale prices block new borrows. For perpetual markets, stale prices block new position opens but allow reducing positions (to prevent trapped liquidations). Additionally, v4 uses "oracle confidence" from Pyth โ€” if the confidence interval is wider than a threshold percentage of the price, the position count is treated as if the price is at the worst end of the interval for the borrower (conservative pricing). These two mechanisms together address both the oracle manipulation and oracle staleness attack vectors that the v1 exploit exploited.

Key facts

  • Type: Cross-margined Solana trading platform (spot + perps)
  • 2022 exploit: $114M oracle manipulation (Avraham Eisenberg, convicted 2024)
  • v4 rebuild: Improved oracle, PnL weight, circuit breakers
  • Governance: Mango DAO (MNGO token holders)
  • MNGO supply: 10 billion
  • Founded: 2021 (Blockworks Foundation)