Part 4 · Chapter 4

Perpetuals & Derivatives in DeFi

AT A GLANCE

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.

Perpetual SwapsFunding RatesLiquidationPlatform Comparison

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
Section 1

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:

Perp Premium: +2.500%Longs pay shorts
8h Funding Rate
+0.8333%
Annualized
+912.5%
You Pay / 8h
-$83.33
Monthly Cost
-$7500.00

⚠️ You're long when longs are paying. You'll lose $7500/month in funding alone.

Section 2

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.

Position: $10,000Collateral: $1,000
Maintenance (50%)
Equity: $1000✅ Healthy
Step 1 of 4

🎯 Liquidation Price Calculator

Find out exactly where your position gets liquidated:

Position Size
$10,000
Liquidation Price
$1,900
Distance to Liq
5.0%
Margin Ratio
10.0%
🔮

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.

Section 3

Using Perps Responsibly

Different platforms, different tradeoffs. Choose based on your needs, not just max leverage.

🏛️ Compare DeFi Perp Platforms

🔵
GMX
Arbitrum, AvalanchePool-based (GLP/GM)50x

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.

Pricing Model

Oracle-based (Chainlink). Trades execute at the oracle price with no slippage. This means large trades don't move the price.

Fees

0.1% open/close + borrow fee (hourly)

Oracle Risk

Relies on Chainlink. Oracle delay can be exploited in volatile markets.

Insurance

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
1.Start with 2-3x leverage maximum. Master risk before scaling up.
2.Always set stop-losses. "I'll watch it" is not a risk management plan.
3.Monitor funding rates — they can silently drain your position over days.
4.Size positions so a full loss doesn't materially impact your portfolio.
5.Use platforms with robust oracles, audits, and insurance funds.
6.Add margin during volatile periods — don't wait for the liquidation alert.
Watch Out

Common Mistakes & Gotchas

💸
I'm paying 0.01% funding every 8 hours — that's basically free
0.01% per 8 hours = 0.03%/day = ~11% annually. On a $10,000 position, that's $1,100/year in funding costs eating your profits. Always annualize funding rates.
🎲
50x leverage on DOGE — it moved 10% yesterday so I'll make 500%!
On illiquid pairs with high volatility, a 2% move against you at 50x = total liquidation. High leverage on volatile, illiquid pairs is a recipe for instant loss.
📍
My limit order is at $1,950 so I'm safe from liquidation at $1,900
Liquidation uses the mark price (oracle), not the last traded price. Your stop-loss can fail if there's a price gap or oracle delay. Leave extra buffer.
🌊
Volatility is spiking but my margin ratio is fine right now
High volatility = fast price moves. What looks like safe margin can vanish in minutes. Add margin during volatile periods or reduce position size.

🔥 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.

Test Yourself

Knowledge Check

1

What keeps a perp price near spot?

2

When does liquidation occur?

3

Name one on-chain perpetuals platform:

4

Why are funding costs important to monitor?

5

What's a key difference between GMX and dYdX?

Next Steps

Continue learning: Cross-Chain Bridges and Risks to understand moving collateral between venues
Hands-on practice: Try a testnet perp exchange with minimal collateral — many platforms offer paper trading modes