On October 11, 2022, at 22:34 UTC, a sequence of transactions on Solana extracted $114 million from Mango Markets. The attacker did not exploit a bug in the traditional sense; they exploited a flaw in the protocol’s risk architecture that was visible from the first line of the white paper. This was not a code vulnerability—it was a structural fracture.

Context: The Protocol's Design Blindspot
Mango Markets launched in 2021 as a cross-margin trading and lending platform. Users deposited assets as collateral to borrow others. The protocol relied on a TWAP oracle derived from Serum's order book to price assets. The native token, MNGO, served as both a governance token and eligible collateral. This dual role—governance token with zero intrinsic cash flows and collateral—was the first red flag.
By June 2022, Mango had attracted over $200 million in TVL. Audits from Kudelski Security and Jump Crypto had been completed. The risk parameters were set with conservative initial loan-to-value ratios. Yet, the fundamental question remained: what happens when a low-liquidity token is used as collateral in a system where its price can be manipulated?

Core: The Systematic Teardown
I spent three weeks reconstructing the attack transaction by transaction. The method was elegant in its simplicity.
Step 1: Flash loan $100 million USDC from Solend and Sunny Aggregator. Step 2: Deposit $50 million into the MNGO/USDC liquidity pool on Serum. Execute a series of sell orders that push the MNGO price from $0.03 to $0.12—a 300% increase in under five minutes. Step 3: The Serum TWAP oracle, with a 300-second window, gradually absorbs these trades. The attacker times their next move just as the TWAP begins to reflect the elevated price. Step 4: Deposit the artificially inflated MNGO as collateral on Mango Markets. Borrow against it: 150 million USDC and other assets. The borrowing limit, calculated at the new oracle price, allows the attacker to drain the protocol.
The attack exploited three specific design failures: - Oracle latency vs. market speed: The TWAP window was too short to smooth out a coordinated manipulation, yet too long to prevent the attacker from acting before the window closed. - Liquidity depth dependency: MNGO had a fraction of the liquidity of stablecoins; a $50 million order moved the price drastically. - Collateral eligibility for governance tokens: MNGO had no redeemable value; it was a vote token with no claim on future cash flows. Accepting it as collateral was a governance failure.
During my audit of 0x Protocol v2 in 2018, I learned that edge cases in order book matching could cascade into systemic risks. Here, the edge case was not in the matching logic but in the oracle's assumption that price feeds are independent of the assets being used as collateral. Trust is a variable; verification is a constant.
Contrarian: What the Bulls Got Right
The bulls argued that the exploit was a sophisticated, one-off event. They pointed to the audits, the conservative LTV ratios, and the attacker’s eventual proposal to return funds for a bounty. They claimed the fault lay with the oracle, not with Mango’s core design.
But this framing is dangerous. The exploit was not an anomaly; it was a stress test that the protocol failed. The real insight is that the DeFi industry has built a model of “security theater” where audits are treated as final certifications rather than iterative stress tests. The 0x audit I performed found integer overflow risks; here, the risk was structural: an incentive misalignment that allowed a governance token to be used as collateral.
The LUNA/UST collapse earlier that year had already demonstrated the danger of circular collateral. In that case, UST’s stability was derived from LUNA’s value; in Mango’s case, MNGO’s value was derived from the protocol’s potential, not from any external cash flow. The same flaw—relying on a self-referential asset—repeated itself.
Volatility is just noise; liquidity is the signal. The signal here was that MNGO’s liquidity was thin, and the protocol’s risk parameters did not account for the possibility of a coordinated manipulation. Every exit liquidity pool leaves a footprint.
Takeaway: Accountability Call
The Mango Markets exploit should not be dismissed as a hack. It was a structural failure that was predictable from the tokenomics design. The question is not whether the ecosystem will learn from this—it will, for a few months. The real question is: will the next protocol that proposes listing its own governance token as collateral face the same scrutiny, or will it be given the benefit of the doubt until the attacker arrives?
Silence in the code is where the theft hides. The chain remembers what the CEO forgets.