📈 Perpetual DEX Internals
Perpetual futures are the most traded instrument in crypto — more volume than spot markets. Unlike traditional futures, perps never expire. They use a funding rate mechanism to keep their price tethered to the underlying spot price. Protocols like GMX, dYdX, and Hyperliquid have built billion-dollar markets entirely on-chain, each with different architectural tradeoffs.
🏗️ Architecture Comparison
GMX
Model: Pool-based (GLP/GM)
Oracle: Chainlink + FastPriceFeed
Zero slippage trades against the pool
Traders PnL = LPs PnL
Oracle: Chainlink + FastPriceFeed
Zero slippage trades against the pool
Traders PnL = LPs PnL
dYdX
Model: Order book (off-chain matching)
Chain: Cosmos appchain (v4)
MEV-resistant with in-protocol sequencer
CEX-like UX with decentralized settlement
Chain: Cosmos appchain (v4)
MEV-resistant with in-protocol sequencer
CEX-like UX with decentralized settlement
Hyperliquid
Model: Order book (on-chain L1)
Speed: <1s finality
Custom HyperBFT consensus
Vaults for market-making
Speed: <1s finality
Custom HyperBFT consensus
Vaults for market-making
✦ Live
Funding Rates
How perpetual futures stay pegged to spot price through periodic payments between longs and shorts
✦ Live
Virtual AMMs
How vAMMs create synthetic price exposure without real liquidity — the engine behind on-chain perps
✦ Live
Liquidations
Maintenance margins, liquidation cascades, and how insurance funds absorb bad debt