Perpetuals & Derivatives in DeFi
Decentralized perpetual futures and options bring leverage and hedging on-chain. You'll learn funding rates, liquidation mechanics, and how DeFi derivatives differ from centralized ones.
Who Is This For?
- •Traders exploring on-chain leverage
- •Risk-aware users who want to hedge without leaving DeFi
Learning Objectives
- 1.Explain how perpetual swaps maintain pegs via funding rates
- 2.Describe liquidation triggers and margin management
- 3.Compare DeFi derivatives platforms and their risk controls
What Perps Are
Perpetual swaps are the most popular derivative in crypto. They let you bet on price movements with leverage — and they never expire.
📅 Traditional Futures
- •Has an expiry date
- •Price converges to spot at expiry
- •Must roll over to maintain position
- •Common in traditional markets
♾️ Perpetual Swaps
- •No expiry — hold forever
- •Funding rate keeps price near spot
- •No roll-over needed
- •Dominant instrument in crypto
💰 Funding Rate Simulator
See how the spread between perp and spot price creates funding payments:
⚠️ You're long when longs are paying. You'll lose $7500/month in funding alone.
Mechanics & Risk
Understanding margin, liquidation, and the role of oracles is essential before trading with leverage.
📉 From Margin to Liquidation
Step through to see how positions get liquidated:
Initial Margin (Opening)
The collateral you deposit to open a leveraged position. With 10x leverage and $1,000 collateral, you control a $10,000 position.
🎯 Liquidation Price Calculator
Find out exactly where your position gets liquidated:
Oracle Role
Oracles (Chainlink, Pyth) provide the "mark price" used for margin calculations and liquidations. Oracle delays or manipulation can cause unexpected liquidations or exploits.
Insurance Funds
When liquidations don't fully cover losses, insurance funds step in to prevent socialized losses. Funded by liquidation penalties and protocol revenue. Check size before trading.
Using Perps Responsibly
Different platforms, different tradeoffs. Choose based on your needs, not just max leverage.
🏛️ Compare DeFi Perp Platforms
GMX
Traders trade against a multi-asset liquidity pool (GLP/GM). Pool holders earn trader losses and fees. No order book — oracle-based pricing means zero price impact on trades.
Oracle-based (Chainlink). Trades execute at the oracle price with no slippage. This means large trades don't move the price.
0.1% open/close + borrow fee (hourly)
Relies on Chainlink. Oracle delay can be exploited in volatile markets.
GLP/GM pool absorbs losses. If traders consistently profit, LP holders lose.
Pros
- ✓ Zero slippage on trades
- ✓ Simple UX
- ✓ Battle-tested since 2021
- ✓ LP earns real yield from fees + trader losses
Cons
- ✗ LP takes counterparty risk
- ✗ Limited assets
- ✗ Oracle manipulation risk
- ✗ Max open interest caps
🛡️ Rules for Responsible Leverage
Common Mistakes & Gotchas
🔥 Golden Rule: Leverage is a tool, not a strategy. The market doesn't care about your leverage — a 2% move is a 2% move. Leverage just decides whether that 2% costs you a bruise or your entire position.
Knowledge Check
What keeps a perp price near spot?
When does liquidation occur?
Name one on-chain perpetuals platform:
Why are funding costs important to monitor?
What's a key difference between GMX and dYdX?