Derivatives in DeFi
Decentralized derivatives enable trading of complex financial instruments without intermediaries. They provide leverage, hedging, and yield strategies while maintaining the transparency and composability of DeFi.
Perpetual Futures
Perpetual futures are derivative contracts without expiration dates that use funding rates to maintain price peg to the underlying asset.
Funding Rate Mechanism
When funding is positive (longs pay shorts), more traders are long. When negative, more traders are short.
Funding Rate Formula
Where:
- = Perpetual contract price
- = Underlying index price
- = Time between funding payments
Perpetual Futures Comparison
| Protocol | Leverage | Liquidity | Unique Feature |
|---|---|---|---|
| GMX v2 | 100x | $500M+ | Real yield |
| dYdX v4 | 20x | $300M+ | Cosmos-based |
| Drift | 10x | $100M+ | Solana native |
| Hyperliquid | 50x | $200M+ | Order book |
Perpetual Protocol Comparison
| Protocol | Leverage | Fees | Funding Rate | Unique Feature |
|---|---|---|---|---|
| GMX | 30x | 0.1% | Variable | Real yield from fees |
| dYdX v4 | 20x | 0.02-0.05% | 8-hour intervals | Cosmos-based |
| Gains Network | 150x | 0.08% | Variable | Synthetic perps |
| Kwenta | 25x | 0.06% | Variable | Synthetix-powered |
| Perpetual Protocol | 10x | 0.1% | Virtual AMM | vAMM model |
Options Protocols
Options Basics
An option gives the holder the right (not obligation) to buy (call) or sell (put) an asset at a specified strike price.
Options Pricing: Black-Scholes Adaptation
Where:
- = Current price
- = Strike price
- = Risk-free rate
- = Time to expiration
- = Volatility
- = Cumulative normal distribution
Options Greeks
| Greek | Definition | Formula | Risk Management |
|---|---|---|---|
| Delta () | Price sensitivity | Delta hedging | |
| Gamma () | Delta sensitivity | Gamma scalping | |
| Theta () | Time decay | Theta harvesting | |
| Vega () | Volatility sensitivity | Volatility trading | |
| Rho () | Interest rate sensitivity | Rate hedging |
Options Greeks Visualization
Lyra Finance
Lyra is a decentralized options protocol using a liquidity pool model:
Pricing Mechanism:
Where:
- = Total collateral backing options
- = Total liquidity available
- = Implied volatility from oracle
Lyra Greeks Exposure
| Greek | Source | Management |
|---|---|---|
| Delta | Options positions | Pool rebalancing |
| Gamma | Short gamma from selling options | Automated hedging |
| Theta | Time decay | Earned by pool |
| Vega | Volatility exposure | Collateral management |
Dopex (DPX)
Dopex uses a different model with option straddles and single staking options vaults (SSOVs):
SSOV Model:
| Feature | Lyra | Dopex |
|---|---|---|
| Model | AMM options | Order book + vaults |
| Liquidity | Pool-based | Epoch-based |
| Greeks | Dynamic hedging | Passive exposure |
| Capital Efficiency | High | Medium |
| Complexity | High | Medium |
Synthetic Assets (Synthetix)
Synthetix enables creation of synthetic assets backed by SNX collateral.
Collateralization Ratio
Synthetix Minting
To mint $sUSD (synthetic USD):
- Stake SNX as collateral
- Mint sUSD up to collateralization ratio (typically 400%)
- Use sUSD in DeFi ecosystem
- Burn sUSD to unlock SNX
Synthetix Debt Pool
SNX Staking Rewards
Synthetic Asset Types
| Asset Type | Example | Price Source |
|---|---|---|
| Crypto | sETH, sBTC | Chainlink Oracle |
| Forex | sEUR, sJPY | Chainlink Oracle |
| Commodities | sGold, sOil | Chainlink Oracle |
| Indices | sSP500 | Chainlink Oracle |
| Inverse | iETH, iBTC | Inverse of oracle |
Perpetual Futures Advanced Concepts
Liquidation Price
For long positions:
For short positions:
Mark Price vs Last Price
Using mark price prevents unnecessary liquidations during volatility.
Leverage and Margin
| Leverage | Initial Margin | Maintenance Margin | Liquidation Buffer |
|---|---|---|---|
| 2x | 50% | 25% | 25% |
| 5x | 20% | 10% | 10% |
| 10x | 10% | 5% | 5% |
| 20x | 5% | 2.5% | 2.5% |
| 50x | 2% | 1% | 1% |
Real-World Example: GMX Trading
Setup:
- Trader opens 10x long on ETH at $2,000
- Position size: $10,000
- Maintenance margin: 2.5%
Scenarios:
| ETH Price | PnL | Status |
|---|---|---|
| 1,000 | Profit | |
| 0 | Breakeven | |
| 750 | Approaching liquidation | |
| 875 | Liquidated |
Liquidation Price:
Derivatives Protocol Comparison
Trade-Offs
Derivatives Trade-Offs
| Trade-Off | Option A | Option B |
|---|---|---|
| Leverage | High leverage = more capital efficient | Lower leverage = safer |
| Funding Rate | Positive (longs pay) = bullish market | Negative (shorts pay) = bearish |
| Liquidity | Deep liquidity = lower slippage | Shallow liquidity = higher fees |
| Oracle | Fast oracle = lower latency risk | Slow oracle = manipulation risk |
| Collateral | Multi-collateral = more flexible | Single collateral = simpler |
Key Considerations
- Funding Rate Risk: High positive funding erodes long positions
- Liquidation Risk: Higher leverage increases liquidation probability
- Oracle Dependency: Derivatives rely heavily on accurate price feeds
- Liquidity Fragmentation: Multiple venues split liquidity
- Regulatory Uncertainty: Derivatives face stricter regulatory scrutiny
Derivatives Risk Management
| Risk | Mitigation | Tool |
|---|---|---|
| Price volatility | Stop-loss orders | Smart contracts |
| Liquidation | Position sizing | Risk calculators |
| Funding drain | Hedge positions | Cross-protocol |
| Oracle failure | TWAP oracles | Chainlink |
| Smart contract | Insurance | Nexus Mutual |
Derivatives Protocol Selection Guide
| Use Case | Recommended | Reason |
|---|---|---|
| Perpetual Trading | GMX | High leverage, deep liquidity |
| Options | Lyra | AMM-based, capital efficient |
| Synthetic Assets | Synthetix | Multi-asset exposure |
| Low Slippage | dYdX | Order book model |
| Cross-chain | Kwenta | Synthetix-powered |
Derivatives Trading Strategies
| Strategy | Risk | Complexity | Capital Required |
|---|---|---|---|
| Spot hedging | Low | Low | 1:1 collateral |
| Leveraged long | High | Medium | Variable |
| Options straddle | Medium | High | Premium |
| Delta neutral | Medium | Very High | Multiple positions |
| Yield farming | Medium | High | LP tokens |
Derivatives Protocol Comparison Chart
| Feature | GMX | dYdX | Synthetix | Lyra |
|---|---|---|---|---|
| Type | Perpetuals | Perpetuals | Synthetic | Options |
| Leverage | 100x | 20x | 1x | N/A |
| Collateral | Multi-asset | Multi-asset | SNX | Multi-asset |
| Fee | 0.1% | 0.02-0.05% | 0.3-1% | Variable |
| Revenue Share | Yes | No | Yes | Yes |
| Chain | Arbitrum | Cosmos | Optimism | Optimism |
Derivatives Risk Assessment Framework
| Risk Factor | Weight | Assessment Criteria |
|---|---|---|
| Smart Contract | 30% | Audit status, code quality |
| Oracle Risk | 25% | Source reliability, redundancy |
| Liquidity Risk | 20% | Depth, slippage tolerance |
| Counterparty Risk | 15% | Collateralization, reserves |
| Regulatory Risk | 10% | Jurisdiction, compliance |
Derivatives Due Diligence Checklist
- Smart contract audits completed
- Oracle integration tested
- Liquidity depth verified
- Liquidation mechanisms understood
- Funding rate history reviewed
- Insurance options explored
- Regulatory compliance checked
- Exit strategy defined
Derivatives Market Evolution
| Year | Milestone | Impact |
|---|---|---|
| 2020 | First DeFi perpetuals | Basic leverage trading |
| 2021 | Options protocols launch | Hedging strategies |
| 2022 | GMX success | Real yield model |
| 2023 | Cross-chain derivatives | Multi-chain exposure |
| 2024 | Intent-based trading | Improved UX |
Derivatives Trading Tips
- Start Small: Begin with minimal leverage
- Use Stop-Losses: Protect against sudden moves
- Monitor Funding: High funding rates erode profits
- Understand Liquidation: Know your liquidation price
- Diversify: Don't concentrate in one protocol
- Stay Informed: Follow market conditions
Interview Questions
-
Explain how perpetual futures maintain price peg to the underlying asset through funding rates. What happens when funding rates are excessively positive or negative?
-
Compare Lyra and Dopex options protocols. How do their approaches to liquidity, pricing, and Greeks management differ?
-
A trader opens a 20x leveraged long position on ETH at $2,000. Calculate the liquidation price if the maintenance margin is 3%. What price movement triggers liquidation?
Quiz Questions
-
What happens when perpetual futures funding rate is positive?
- A) Shorts pay longs
- B) Longs pay shorts
- C) No payments occur
- D) Protocol pays traders
-
In Synthetix, what is the typical collateralization ratio required to mint synthetic assets?
- A) 100%
- B) 150%
- C) 400%
- D) 800%
-
Which Greek measures an option's sensitivity to changes in the underlying asset's volatility?
- A) Delta
- B) Gamma
- C) Theta
- D) Vega