Skip to content

Commit 08d6a4d

Browse files
Hiksangclaude
andcommitted
Add DeFi protocol categories documentation
Complete taxonomy of 18 DeFi categories with TVL, CLI coverage, supported interfaces, and top protocols per category. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5081fa1 commit 08d6a4d

1 file changed

Lines changed: 353 additions & 0 deletions

File tree

docs/DEFI_CATEGORIES.md

Lines changed: 353 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,353 @@
1+
# DeFi Protocol Categories — Complete Taxonomy
2+
3+
> Last updated: 2026-03-17
4+
> Total DeFi TVL: ~$160B across all chains
5+
6+
## Coverage Summary
7+
8+
| # | Category | TVL | CLI Support | Interface |
9+
|---|----------|-----|-------------|-----------|
10+
| 1 | [DEX (AMM)](#1-dex-amm) | $15B+ | ✅ Full | uniswap_v2, uniswap_v3, solidly_v2, algebra_v3, curve, balancer, woofi |
11+
| 2 | [DEX Aggregator](#2-dex-aggregator) | $2B+/day vol | ✅ Full | ODOS API (`defi swap`) |
12+
| 3 | [Lending](#3-lendingborrowing) | $45B+ | ✅ Full | aave_v3, aave_v2, compound_v2, compound_v3, morpho_blue, euler_v2 |
13+
| 4 | [CDP / Stablecoins](#4-cdp--stablecoins) | $10B+ | ⚠️ Partial | liquity_v2 only |
14+
| 5 | [Liquid Staking](#5-liquid-staking-lst) | $35B+ | ⚠️ Partial | HyperEVM only (Kinetiq, stHYPE) |
15+
| 6 | [Restaking / LRT](#6-restaking--lrt) | $20B+ | ❌ None ||
16+
| 7 | [Yield Vault](#7-yield-vaults--aggregators) | $3B+ | ✅ Full | erc4626 |
17+
| 8 | [Yield Tokenization](#8-yield-tokenization) | $2.3B | ✅ Full | pendle_v2 |
18+
| 9 | [Derivatives / Perps](#9-derivatives--perpetuals) | $1.5B+/day | ⚠️ Minimal | Generic only |
19+
| 10 | [Bridge](#10-bridge) | cross-chain | ✅ Full | LI.FI API (`defi bridge`) |
20+
| 11 | [Liquidity Management](#11-liquidity-management--alm) | $500M+ | ⚠️ Minimal ||
21+
| 12 | [Leverage Vault](#12-leverage-vault) | $1B+ | ❌ None ||
22+
| 13 | [Options](#13-options) | <$100M | 💤 Skip | Market too small |
23+
| 14 | [Insurance](#14-insurance) | <$111M | 💤 Skip | Market too small |
24+
| 15 | [Prediction Markets](#15-prediction-markets) | $447M | 💤 Skip | Not CLI-friendly |
25+
| 16 | [RWA](#16-rwa-real-world-assets) | $13B+ | 💤 Skip | Just ERC-20 tokens |
26+
| 17 | [NFT-Fi](#17-nft-fi) | $200M+ | 💤 Skip | Niche |
27+
| 18 | [Payment / Streaming](#18-payment--streaming) | Small | 💤 Skip | Niche |
28+
29+
---
30+
31+
## Detailed Categories
32+
33+
### 1. DEX (AMM)
34+
35+
**What**: Decentralized token swaps via automated market makers.
36+
37+
**TVL**: $15B+
38+
39+
**Interfaces supported**:
40+
- `uniswap_v2` — Uniswap V2, PancakeSwap, SushiSwap, QuickSwap, Pangolin, FusionX, Merchant Moe
41+
- `uniswap_v3` — Uniswap V3, PancakeSwap V3, Agni Finance
42+
- `solidly_v2` — Velodrome, Aerodrome, Ramses, Ring Few, Thena, Lynex, Nile
43+
- `algebra_v3` — Camelot, KittenSwap, NEST, QuickSwap V3
44+
- `curve_stableswap` — Curve
45+
- `balancer_v3` — Balancer
46+
- `woofi` — WOOFi
47+
48+
**Top protocols on our chains**:
49+
50+
| Protocol | TVL | Chains |
51+
|----------|-----|--------|
52+
| Uniswap V3 | $1.78B | ETH, ARB, POLY, OP, BASE, BNB, AVAX, SCROLL, LINEA |
53+
| Curve | $1.89B | ETH, ARB, POLY, OP, BASE, BNB, AVAX |
54+
| PancakeSwap | $1.69B | BNB, ETH, ARB, BASE |
55+
| Aerodrome | $357M | BASE |
56+
| Velodrome | $49M | OP |
57+
58+
**Not supported**: Trader Joe Liquidity Book (unique bin-based AMM), DODO PMM, Maverick V2
59+
60+
---
61+
62+
### 2. DEX Aggregator
63+
64+
**What**: Routes trades across all DEXes for best execution price.
65+
66+
**Volume**: $2B+/day combined
67+
68+
**CLI**: `defi swap --chain mantle --from USDC --to WMNT --amount 100 --json`
69+
70+
**Backend**: ODOS API (no key required, 9/11 chains)
71+
72+
| Aggregator | Volume/day | Our chains |
73+
|------------|-----------|------------|
74+
| 1inch | $211M | 8/11 (needs key) |
75+
| KyberSwap | $238M | 8/11 |
76+
| **ODOS** || **9/11 ✅** |
77+
| 0x/Matcha | $116M | 11/11 (needs key) |
78+
| CoW Swap | $152M | 6/11 |
79+
80+
---
81+
82+
### 3. Lending/Borrowing
83+
84+
**What**: Supply assets to earn interest, borrow against collateral.
85+
86+
**TVL**: $45B+
87+
88+
**Interfaces supported**:
89+
- `aave_v3` — Aave V3, Spark, HyperLend, HypurrFi, Kinza
90+
- `aave_v2` — Aave V2 (legacy), Lendle
91+
- `compound_v2` — Compound V2, Venus, Benqi, Sonne, Mendi, LayerBank
92+
- `compound_v3` — Compound V3 (Comet) on ETH, ARB, BASE, OP, POLY, MANTLE, SCROLL
93+
- `morpho_blue` — Morpho Blue
94+
- `euler_v2` — Euler V2
95+
96+
**Top protocols**:
97+
98+
| Protocol | TVL | Interface |
99+
|----------|-----|-----------|
100+
| Aave V3 | $26.1B | aave_v3 |
101+
| Morpho Blue | $7.0B | morpho_blue |
102+
| Spark | $4.9B | aave_v3 (fork) |
103+
| Compound V3 | $1.4B | compound_v3 |
104+
| Venus | $1.48B | compound_v2 |
105+
| Euler V2 | $523M | euler_v2 |
106+
107+
**Not supported**: Fluid/Instadapp ($1.1B, unique interface), Silo V2 ($48M)
108+
109+
---
110+
111+
### 4. CDP / Stablecoins
112+
113+
**What**: Mint stablecoins by locking collateral in debt positions.
114+
115+
**TVL**: $10B+
116+
117+
**Supported**: `liquity_v2` (Felix on HyperEVM)
118+
119+
| Protocol | TVL | Chain | Supported |
120+
|----------|-----|-------|-----------|
121+
| MakerDAO/Sky | $7.46B | ETH | ❌ (complex DSProxy) |
122+
| Ethena USDe | $6.69B | ETH | ❌ (off-chain basis trade) |
123+
| Liquity V2 | $102M | ETH ||
124+
| crvUSD | varies | ETH | ❌ (unique LLAMMA) |
125+
| GHO (Aave) | varies | ETH ||
126+
127+
---
128+
129+
### 5. Liquid Staking (LST)
130+
131+
**What**: Stake native tokens, receive liquid receipt (stETH, rETH, etc.)
132+
133+
**TVL**: $35B+
134+
135+
**Supported**: HyperEVM only (Kinetiq kHYPE, stHYPE)
136+
137+
| Protocol | TVL | Chain | Supported |
138+
|----------|-----|-------|-----------|
139+
| Lido (stETH) | $21.4B | ETH ||
140+
| Rocket Pool (rETH) | $1.35B | ETH ||
141+
| cbETH | varies | ETH, BASE ||
142+
| Frax (sfrxETH) | varies | ETH | ❌ (ERC-4626, could use vault) |
143+
| Mantle LSP (mETH) | varies | MANTLE ||
144+
145+
**Note**: LST tokens (wstETH, rETH, mETH) are already usable as collateral via our lending commands.
146+
147+
---
148+
149+
### 6. Restaking / LRT
150+
151+
**What**: Re-stake LSTs to secure additional services, receive liquid restaking tokens.
152+
153+
**TVL**: $20B+
154+
155+
**Supported**: ❌ None
156+
157+
| Protocol | TVL | Chains |
158+
|----------|-----|--------|
159+
| EigenLayer | $10.2B | ETH |
160+
| ether.fi (weETH) | $6.15B | ETH, ARB, BASE |
161+
| Kelp (rsETH) | $1.36B | ETH, ARB, BASE, SCROLL, OP, LINEA |
162+
| Renzo (ezETH) | varies | ETH, ARB, BASE, LINEA |
163+
164+
**Note**: LRT tokens (weETH, rsETH, ezETH) are widely used as lending collateral on Aave/Morpho. Our lending commands cover this indirectly.
165+
166+
---
167+
168+
### 7. Yield Vaults / Aggregators
169+
170+
**What**: Auto-compound yields, optimize strategies across protocols.
171+
172+
**TVL**: $3B+
173+
174+
**Supported**: `erc4626` (covers Yearn V3, Beefy, Veda, sDAI, sfrxETH, Morpho vault curators)
175+
176+
| Protocol | TVL | Interface |
177+
|----------|-----|-----------|
178+
| Convex | $715M | ❌ (unique booster) |
179+
| Yearn V3 | $260M | ✅ ERC-4626 |
180+
| Beefy | $152M | ✅ ERC-4626 |
181+
| Morpho curators | $3B+ | ✅ ERC-4626 |
182+
| Spark Savings (sDAI) | $1.48B | ✅ ERC-4626 |
183+
184+
---
185+
186+
### 8. Yield Tokenization
187+
188+
**What**: Split yield-bearing tokens into principal (PT) and yield (YT) for trading.
189+
190+
**TVL**: $2.3B
191+
192+
**Supported**: `pendle_v2`
193+
194+
| Protocol | TVL | Chains |
195+
|----------|-----|--------|
196+
| Pendle | $2.26B | ETH, ARB, BASE, MANTLE, OP, AVAX, BNB |
197+
| Spectra | $33M | ETH, ARB, BASE |
198+
199+
---
200+
201+
### 9. Derivatives / Perpetuals
202+
203+
**What**: On-chain leveraged trading, perpetual futures.
204+
205+
**Volume**: $1.5B+/day
206+
207+
**Supported**: Generic only (`hlp_vault`)
208+
209+
| Protocol | Volume/day | Chains | Interface |
210+
|----------|-----------|--------|-----------|
211+
| GMX V2 | $236M | ARB, AVAX | ❌ (complex Router) |
212+
| MYX Finance | $314M | BNB, LINEA, ARB ||
213+
| Gains Network | $36M | ARB, POLY, BASE ||
214+
| Vertex | varies | ARB, MANTLE ||
215+
| Synthetix V3 | $45M TVL | ETH, OP, ARB, BASE ||
216+
217+
---
218+
219+
### 10. Bridge
220+
221+
**What**: Move assets between chains.
222+
223+
**CLI**: `defi bridge --from-chain mantle --to-chain ethereum --token USDC --amount 100 --json`
224+
225+
**Backend**: LI.FI API (no key required, 10/11 chains)
226+
227+
| Bridge | Chains | Via LI.FI |
228+
|--------|--------|-----------|
229+
| Relay | most ||
230+
| Across | 7/11 ||
231+
| Stargate V2 | 10/11 ||
232+
| CCTP (Circle) | 6/11 ||
233+
| deBridge | most ||
234+
235+
---
236+
237+
### 11. Liquidity Management / ALM
238+
239+
**What**: Automated rebalancing of concentrated LP positions (Uniswap V3 style).
240+
241+
**TVL**: $500M+
242+
243+
| Protocol | TVL | Chains |
244+
|----------|-----|--------|
245+
| Arrakis V2 | $77M | ETH, ARB, BASE, POLY |
246+
| Steer | $30M | ARB, POLY, AVAX, BASE, LINEA |
247+
| Gamma | $5M | Multiple |
248+
249+
**Note**: Most ALM vaults use ERC-4626 or ERC-20, could potentially use existing vault adapter.
250+
251+
---
252+
253+
### 12. Leverage Vault
254+
255+
**What**: One-click leveraged yield farming positions.
256+
257+
**TVL**: $1B+
258+
259+
| Protocol | TVL | Chains |
260+
|----------|-----|--------|
261+
| Gearbox V3 | $250M+ | ETH, ARB |
262+
| Contango V2 | $100M+ | ETH, ARB, BASE |
263+
| Juice Finance | varies | BLAST |
264+
265+
**Note**: Unique interfaces per protocol. Not standardized.
266+
267+
---
268+
269+
### 13. Options
270+
271+
**TVL**: <$100M. Market has not achieved product-market fit. Skip.
272+
273+
---
274+
275+
### 14. Insurance
276+
277+
**TVL**: ~$111M (Nexus Mutual only). Niche. Skip.
278+
279+
---
280+
281+
### 15. Prediction Markets
282+
283+
**TVL**: $447M (Polymarket). Web-app experience, not CLI-friendly. Skip.
284+
285+
---
286+
287+
### 16. RWA (Real World Assets)
288+
289+
**TVL**: $13B+ (tokenized treasuries, gold). Just ERC-20 tokens tradeable on DEXes. No special interface needed.
290+
291+
---
292+
293+
### 17. NFT-Fi
294+
295+
**TVL**: $200M+ (Blur Blend, BendDAO). NFT collateral lending. Niche, skip.
296+
297+
---
298+
299+
### 18. Payment / Streaming
300+
301+
Small market (Sablier, Superfluid). Streaming payment protocols. Skip.
302+
303+
---
304+
305+
## CLI Coverage Map
306+
307+
```
308+
Total DeFi TVL: ~$160B
309+
310+
✅ Covered by our CLI:
311+
Lending $45B (Aave, Compound, Morpho, Euler, Spark, Venus, Benqi...)
312+
DEX $15B (Uniswap, Curve, PancakeSwap, Velodrome, Balancer...)
313+
DEX Agg $2B+/d (ODOS — best price across ALL DEXes)
314+
CDP $10B* (Liquity V2 only, MakerDAO gap)
315+
Vault $3B (ERC-4626 — Yearn, Beefy, Morpho curators, sDAI...)
316+
Pendle $2.3B (Yield tokenization)
317+
Bridge x-chain (LI.FI — all major bridges)
318+
LST partial (HyperEVM: Kinetiq, stHYPE)
319+
─────
320+
Total: ~$77B+ directly addressable
321+
322+
❌ Main gaps:
323+
LST (ETH) $35B (Lido, Rocket Pool — simple interface)
324+
Restaking $20B (EigenLayer, ether.fi — deposit/withdraw)
325+
Perps $1.5B/d (GMX V2 — complex)
326+
Fluid $1.1B (unique interface)
327+
─────
328+
Total gap: ~$57B
329+
330+
💤 Not worth adding:
331+
RWA $13B (just ERC-20 tokens)
332+
Options <$100M
333+
Insurance <$111M
334+
Prediction $447M
335+
NFT-Fi $200M
336+
```
337+
338+
## Supported Chains (11)
339+
340+
| Chain | ID | Protocols | Tokens |
341+
|-------|-----|-----------|--------|
342+
| HyperEVM | 999 | 22 | 15 |
343+
| BNB | 56 | 16 | 8 |
344+
| Base | 8453 | 11 | 8 |
345+
| Arbitrum | 42161 | 10 | 9 |
346+
| Mantle | 5000 | 8 | 12 |
347+
| Ethereum | 1 | 8 | 10 |
348+
| Polygon | 137 | 8 | 8 |
349+
| Linea | 59144 | 8 | 7 |
350+
| Avalanche | 43114 | 6 | 9 |
351+
| Optimism | 10 | 6 | 10 |
352+
| Scroll | 534352 | 5 | 7 |
353+
| **Total** | | **108** | **103** |

0 commit comments

Comments
 (0)