DeFi Liquidity Pools (AMMs)
EN: DeFi Liquidity Pools / AMM / Uniswap / Curve PT: Pools de Liquidez DeFi
El mecanismo que reemplaza orderbooks en DeFi — LPs aportan capital a pools, traders swap contra ellos, fees se distribuyen. Uniswap V3 (concentrated liquidity), Curve (stables), Balancer (multi-asset). Impermanent loss es el risk principal. $100B+ TVL combined. Entender AMMs es entender el 95% de DeFi.
Qué son Liquidity Pools
Los Liquidity Pools (LPs) son contratos inteligentes que contienen reservas de tokens utilizados para facilitar trading peer-to-contract. Son la innovación fundamental que hizo posible DeFi trading. Replacement revolucionario para orderbook-based trading — user no necesita contraparte especifica para comerciar. Mecánica básica (AMM — Automated Market Maker): (1) Liquidity provider (LP) deposita pair of tokens (ej. ETH + USDC) en pool. (2) Recibe LP tokens representing share del pool. (3) Traders swap tokens against pool. Cada swap ajusta ratio y por tanto precio. (4) Trading fees (typically 0.05-1%) se distribuyen proporcionalmente a LPs. (5) Withdraw: LP burn LP tokens, receive share of pool (composition may differ from initial deposit due to price movements). Formula clásica (Uniswap V2): x × y = k (constant product formula). Donde x = cantidad token A, y = cantidad token B, k = constante. Cuando alguien compra token A, y debe subir para mantener k constante, lo cual implica que el precio de A subió. Historical evolution: Uniswap V1 (2018): primera implementación AMM popular. ETH pairs only. Uniswap V2 (2020): general ERC-20 pairs. Unleashed DeFi summer. Curve (2020): specialized for stablecoins. Lower slippage. Balancer (2020): multi-asset pools (up to 8 tokens). Customizable weights. Uniswap V3 (2021): revolucionary concentrated liquidity. LPs choose price range para capital. 4000x efficiency improvement for some pairs. Uniswap V4 (2024): hooks customizables, advanced features. Market share 2024-2025: Uniswap (V2 + V3): $5B+ TVL, $2B+ daily volume. Dominant DEX. Curve: $2B TVL, specialist in stables. Balancer: $1B TVL, multi-asset. PancakeSwap: $2B TVL, BNB Chain y expanding. Aerodrome (Base): $1.5B TVL, Base-native. Velodrome (Optimism): similar. Combined DEX landscape: $20B+ TVL, processes hundreds of millions daily. Fundamental infrastructure of DeFi.
Uniswap V3 y Concentrated Liquidity
Uniswap V3 (May 2021) revolucionó AMMs con concentrated liquidity. Problema que resolvía: en V2, liquidity was spread across full price range (0 to infinity). Most trading happens en narrow price range, so most capital was "wasted" — sitting en price levels nunca traded. Capital inefficient. Solution V3: LPs can specify price range para proveer liquidity. Ejemplo: ETH trading at $3,000. LP provides 1 ETH + 3,000 USDC only for range $2,800-$3,200. Capital concentrated here. All trading within range uses their liquidity (earning fees). Efficiency improvement: up to 4000x more capital efficient. Same fees with 1/4000 the capital. Dramatic yields for active LPs. But complexity increased: Active management required: if price moves out of LP range, LP stops earning fees. Must "recenter" position. Out-of-range positions: only hold one asset (not both). Converted to whichever side price moved to. Impermanent loss amplified: concentrating capital amplifies IL when price moves. Fee tiers: V3 introduced multiple fee tiers per pool. 0.05%: stablecoin pairs (USDC/DAI). 0.30%: standard pairs (ETH/USDC). 1%: exotic pairs (niche tokens). 0.01%: added later for stables. LPs choose tier based on risk/volume expectations. Strategies: (1) Narrow range LP: aggressive. High fees, high IL risk. Requires active management. Example: ETH/USDC narrow range ±2% around market price. Fees 200-500% APR potential, pero requires re-centering weekly. (2) Wide range LP: conservative. Lower fees, less IL, passive. Example: ETH/USDC ±20% around market. Fees 20-40% APR, managed monthly. (3) Range orders: single-sided LP. If range entirely above current price, acts as limit sell order. If below, limit buy. Advanced technique. (4) JIT liquidity (Just-In-Time): MEV bots provide liquidity for single block before expected large trade, removing after. Extracts fees without IL. Controversial. LP managers: services like Arrakis, Gamma, Charm automate V3 LP management. Retail accessible. 10-30% APY typical. Tradeoff: management fees.
Impermanent Loss en Detalle
El Impermanent Loss (IL) es el risk más importante y mal entendido de LP. Definición: IL ocurre cuando el precio relativo de los tokens en el pool cambia vs. el momento del deposit. LP ends up with more of the losing token, less of the winning. Compared to just holding the tokens, LP underperforms. Ejemplo numérico (Uniswap V2, 50/50 pool): deposit 1 ETH + $3,000 USDC when ETH = $3,000. Pool value: $6,000. If ETH appreciates to $6,000 (2x): without LP, holder has 1 ETH ($6,000) + $3,000 = $9,000. With LP, AMM rebalances: pool now has 0.707 ETH + $4,243 USDC = $8,486. IL = $514 ($9,000 - $8,486), o 5.7% less value. Pero trading fees offset parcial o completamente: si pool earned $500 fees during period, net LP return = -$14 (barely negative) vs. +$3,000 holder. Usually fees don't fully offset IL during large moves. Universal truth: LP profitable when IL < fees earned. IL worse para higher volatility pairs. Stable pairs (USDC/USDT): minimal IL. Correlated pairs (wBTC/ETH): low IL. Uncorrelated pairs: high IL. Volatile pairs: extreme IL risk. Magnitude table: ±5% price change: IL ~0.06%. Trivial. ±25%: IL ~0.6%. Modest. ±50% (1.5x move): IL ~2%. Significant. ±100% (2x move): IL ~5.7%. Major. ±200% (3x): IL ~13%. Catastrophic. ±400% (5x): IL ~25%. Devastating. IL en V3 concentrated liquidity: worse. Concentrating capital amplifies IL when price exits range. If price moves 10% and LP range was ±5%, position is 100% converted to losing token. Worse than V2 equivalent. Mitigation strategies: (1) Stable pairs: low IL inherently. USDC/USDT, DAI/FRAX. 3-8% APY, safe. (2) Correlated pairs: stETH/ETH, wBTC/ETH. Similar price movements reduce IL. (3) High-fee tiers: 1% fee tier pairs earn more to offset IL. But lower volume. (4) Short timeframes: provide liquidity briefly, exit before major moves. Active management. (5) Hedged LP: simultaneously short one token via perps = offset exposure. Delta-neutral LP. Complex. (6) IL insurance: some protocols offer (Bancor v3 tried, struggled). Generally cost-prohibitive. Reality check: avg retail LP en Uniswap V3 slight net loss vs holding after fees. Only sophisticated active managers consistently profitable. Most retail should stick to stablecoin pools where IL minimal.
Curve, Balancer, y Specialized AMMs
Beyond Uniswap, specialized AMMs optimize for specific use cases. Curve Finance: specialized for stablecoins y similar-value assets. StableSwap formula: hybrid between constant product y constant sum. Near-zero slippage for similar-value pairs. Use cases: USDC/USDT/DAI swaps (3pool), stETH/ETH, wBTC/renBTC. Volumes: $100M+ daily. Major users: arbitrageurs, DeFi protocols, yield aggregators. Governance: CRV token + veCRV (vote-escrowed) model. Locked CRV earns higher yields, directs protocol fees. TVL: $2B+. "Curve wars": 2021-2022 — protocols competed for CRV voting power to direct emissions to their pools. Convex Finance dominated. Novel governance dynamic. Balancer: Multi-asset pools: up to 8 tokens per pool. Custom weights: not restricted to 50/50. Example: 80% ETH / 20% USDC. Use cases: index-like exposure, custom portfolios, LBPs (Liquidity Bootstrapping Pools for new token launches). Managed pools: weights can change over time. Complex strategies possible. TVL: $1B+. Innovation: Balancer v2 unified vault architecture reduced gas costs 50%+. Aerodrome/Velodrome: Solidly fork: revolutionary ve(3,3) model by Andre Cronje. Locked governance token: veAERO, veVELO. Voters direct emissions to pools. Bribes market: protocols pay voters to direct emissions their way. Use cases: bribes-optimized LP strategies. Pools pay above-market yields. TVL: Aerodrome $1.5B on Base, Velodrome $500M on Optimism. Maverick Protocol: innovation 2023. Dynamic liquidity that moves with price automatically. Reduces IL vs traditional LPs. TVL: growing. Differentiated offering. Ambient (Crocswap): concentrated liquidity like V3 but different math. TVL $200M+. Kyber DMM: dynamic market maker, adjust curves. Niche. PancakeSwap V3: BNB Chain's Uniswap clone con concentrated liquidity. $2B TVL. Dominant on BNB. Choosing right DEX: Stablecoin swaps: Curve wins. Major pairs (ETH/USDC): Uniswap V3 typically best liquidity. Exotic tokens: Uniswap V3 (via aggregators like 1inch). Custom portfolios: Balancer. Bribes/yields: Aerodrome, Velodrome. BNB Chain: PancakeSwap. Low-slippage stables: Curve or PancakeSwap. Aggregators: 1inch, Matcha, ParaSwap route trades across multiple DEXs for best price. Always use aggregators for swaps >$1K. Save 0.1-1% typically.
LP Strategies y Risk Management
El LP trading es arte específico con risk management crítico. Strategy 1: Stablecoin LP (conservative): pools like Curve 3Pool (USDC/USDT/DAI), Uniswap V3 0.01% tier USDC/USDT. APY: 3-8%. IL minimal. Smart contract risk only. Recommended allocation: 30-50% of "DeFi yield" portion of portfolio. Proven, boring, consistent. Strategy 2: Correlated asset LP: stETH/ETH pools (Curve), wBTC/BTC wrapped pools. APY: 5-15%. IL moderate (assets correlated). Harvest staking yields + LP fees simultaneously. Recommended 10-20% allocation. Strategy 3: V3 concentrated LP active: narrow ranges para major pairs (ETH/USDC). APY: 20-200% potential. Requires active re-centering (weekly minimum). High IL risk. Use Arrakis, Gamma, Charm for automation. Recommended 5-15% allocation for sophisticated users. Strategy 4: Blue chip LP: UNI/ETH, AAVE/ETH on Uniswap V3. Medium-high APY (30-80%). Directional exposure. Recommended small allocation (2-5%). Strategy 5: LBP participation: Balancer Liquidity Bootstrapping Pools for new token launches. Provide liquidity at token launch, earn high initial APY, often receive airdrops. Speculative. 1-3% allocation max. Strategy 6: Delta-neutral LP: provide liquidity long + short perpetual hedge. Remove directional exposure. Earn pure fees + funding. Complex. Requires sophisticated tools (dHedge, Jupiter Perps). 20-50% APY possible. 5-10% allocation for experienced users. Strategy 7: Yield aggregator LPs: Yearn, Beefy, Convex route LP position across multiple strategies. Simple for user, professionally managed. APY 10-30%. 10-20% allocation. Risk monitoring: Check weekly: (1) Price movements vs LP range. (2) Fees earned vs IL. (3) Pool volume trends. (4) Protocol health (TVL, governance, audits). (5) Broader market conditions. Exit triggers: (1) Price moves 20%+ outside LP range (V3). (2) Fees declining 50% from expected. (3) Protocol security issue announced. (4) Better opportunity available. Portfolio construction example: $100K "DeFi yield" allocation: $40K Curve 3Pool stables (conservative base), $20K stETH/ETH Curve (correlated stake+fees), $15K V3 ETH/USDC narrow range (active management), $10K Yearn vaults (aggregator), $10K Aerodrome bribes strategy (higher yield), $5K LBP / experimental (speculative). Target blended APY: 8-15%. Rebalance monthly. Tools esenciales: DeFi Llama: pool APYs comparisons. Arrakis/Gamma: automated V3 LP management. Merkl: concentrated liquidity rewards aggregator. Incentives.com: bribes tracking. DeBank: portfolio tracker. Revert Finance: LP position analysis, IL tracking.
Major AMM DEXs — Comparison
Different specializations; choose based on use case.
| DEX | TVL | Specialty | Best Use Case |
|---|---|---|---|
| Uniswap V3 | $5B+ | Concentrated liquidity | All ERC-20 swaps, active LP |
| Curve | $2B+ | Stablecoin swaps | USDC/USDT, stETH/ETH, pegged assets |
| Balancer | $1B+ | Multi-asset (up to 8) | Custom portfolios, LBPs |
| Aerodrome (Base) | $1.5B | ve(3,3) + bribes | Base-native, high yields via bribes |
| PancakeSwap | $2B | BNB Chain dominant | BNB Chain swaps, farming |
| Curve v2 | ~$1B | Volatile pairs stable-like | Correlated pairs, low slippage |