Mango Markets · interactive mechanism simulation

Cross-margin lending: deposits, spot, and perp PnL all count toward one risk engine. Normal borrowing flows quietly — until someone manipulates the oracle of a thin token the protocol itself prices as collateral.
Depositors normal collateral Attacker two linked accounts Cross-margin risk engine unified account health perp PnL weight: 100% MNGO oracle $0.03 MNGO-PERP unrealized PnL: 0 Protocol vault $70.0M
MNGO oracle price
$0.03
Attacker borrowing power
$0 USD
Protocol vault remaining
$70.0M
Total drained
$0
Parameters — edit me
100%
1000%
$150M
0.8/s
Controls

Illustrative simulation. Defaults mirror the researched Mango exploit (~$110M drained by pumping the thin MNGO oracle to inflate perp PnL used as collateral), but background borrowing and the exact attack size are randomized/simplified for visualization — not live onchain data. Lower the "perp PnL collateral weight" to zero to see the defense that Mango v4 later adopted. Part of The Onchain Experiment Atlas.