Liquidity Provision Deep Dive
Impermanent loss math with worked examples, concentrated liquidity in Uniswap v3/v4, range order strategies, fee tier selection, and LP returns analysis.
From Thrive on YouTube
Watch the matching Thrive video
Reading the Order Book: Liquidity, Spreads and Getting Better Fills
Part of Order Types and Trade Management. Education only. Not financial advice.
Impermanent Loss: The Actual Math
Impermanent loss is the most misunderstood cost in DeFi. Every liquidity provider faces it, yet most cannot quantify it beyond "prices moved and I lost money." The formula is straightforward once you break it down.
For a standard constant-product AMM (x × y = k), impermanent loss as a function of the price ratio r (where r = new price / original price) is:
IL = 2√r / (1 + r) − 1
Worked example: you deposit equal values of ETH and USDC into a pool when ETH is $2,000. ETH doubles to $4,000 (r = 2). IL = 2√2 / (1 + 2) − 1 = 2 × 1.414 / 3 − 1 = 2.828 / 3 − 1 = 0.943 − 1 = −5.72%. If you had simply held your ETH + USDC, you would have $6,000 (1 ETH at $4,000 + $2,000 USDC). Instead, the pool rebalanced you to ~0.707 ETH and ~$2,828 USDC = $5,657. You lost $343 relative to holding. That is your impermanent loss.
| Price 1.25x (25% move) | IL = −0.60%. Negligible. Fees easily cover this in active pools. |
| Price 1.5x (50% move) | IL = −2.02%. Moderate. Requires ~2% fee income to break even. |
| Price 2x (100% move) | IL = −5.72%. Significant. Only high-volume pools compensate for this. |
| Price 3x (200% move) | IL = −13.4%. Severe. You would have been far better off holding. |
| Price 5x (400% move) | IL = −25.5%. Catastrophic. This is why LP-ing volatile new tokens is dangerous. |
IL is permanent when you withdraw
Concentrated Liquidity: Uniswap v3/v4
Concentrated liquidity changed LP economics fundamentally. Instead of spreading capital across the entire price range (0 to ∞), you choose a specific tick range. Capital efficiency can improve by 4,000x for tight ranges, meaning $1,000 in a ±1% range provides the same depth as $4,000,000 in a full-range position.
Ticks are the discrete price points in Uniswap v3/v4. Each tick represents a 0.01% (1 basis point) price change. When you provide liquidity from tick 200,000 to 201,000, you are saying "I want to earn fees only when the price trades within this range." If price moves outside your range, your position earns zero fees and becomes 100% concentrated in the less valuable token.
Range Order Strategies
A range order is a single-sided LP position placed outside the current price. If ETH is at $2,500 and you provide USDC liquidity between $2,000 and $2,200, your position acts as a limit buy order that also earns fees as price falls through the range. If ETH drops to $1,900, your entire position converts to ETH, and you bought it at an effective average of ~$2,100 while collecting fees along the way. This is strictly better than a standard limit order.
The reverse works for selling: place ETH liquidity above the current price ($2,800–$3,000) and your position converts to USDC as price rises through the range. You sell at a better effective price than a single limit order, plus you earn swap fees during the conversion.
Fee Tier Selection and Rebalancing
Uniswap v3 offers four fee tiers: 0.01% (stablecoins), 0.05% (correlated pairs), 0.30% (standard pairs), and 1.00% (exotic/volatile pairs). The right tier depends on the pair's volatility and volume. Stablecoin pairs like USDC/USDT generate enormous volume at 0.01%, making tight ranges profitable. Volatile pairs like ETH/SHIB need the 1% tier because IL overwhelms fee income at lower tiers.
Rebalancing frequency is the critical operational decision. Every rebalance costs gas and realizes any impermanent loss. Rebalancing too often (every price move) burns money on gas. Rebalancing too rarely (price leaves your range entirely) means you earn zero fees. The optimal approach for most LPs: rebalance when price has moved 50-70% through your range, or when the position has been out of range for more than 24 hours on a high-volume pool.
Uniswap v4: Hooks and Custom Pool Logic
Uniswap v4 introduces hooks: custom smart contract logic that executes at specific points during a swap or LP operation. Hooks can run before or after a swap, before or after an LP position modification, and during initialization. This transforms Uniswap from a simple AMM into a programmable liquidity layer.
Adjust swap fees based on volatility, time of day, or oracle data. Low fees during stable markets, high fees during volatility spikes: mimicking how professional market makers adjust spreads.
Time-Weighted Average Market Maker for large orders. Instead of executing a $10M swap atomically (causing massive slippage), spread it across many blocks at a time-weighted average price.
Native on-chain limit orders that execute when the pool price crosses your target. No need for off-chain order matching or keeper networks.
Feed external price data into pool logic. Use Chainlink or Pyth oracles to create pools with fair-value pricing rather than purely AMM-driven prices.
Restrict pool access to wallets that have completed identity verification. Enables institutional-grade DeFi liquidity pools with regulatory compliance.
Curve and Balancer: Specialized Pool Designs
Curve's StableSwap invariant (A × D^(n-1) × ∑x_i + D^n = A × D^n + D^(n+1) / (n^n × ∏x_i)) creates near-zero slippage for assets that should trade at similar prices: stablecoins, wrapped assets (WBTC/renBTC), and liquid staking derivatives (stETH/ETH). The amplification coefficient A controls how "flat" the bonding curve is near the peg. Higher A means lower slippage near parity but catastrophic slippage if the peg breaks. When UST depegged, Curve pools with high A settings became one-way exits.
Balancer supports weighted pools (e.g., 80/20 ETH/USDC instead of 50/50), which reduce impermanent loss for the dominant token. An 80/20 pool experiences roughly 60% less IL than a 50/50 pool for the same price movement. Balancer also supports composable stable pools (multi-asset stable pools with yield-bearing tokens), boosted pools (idle assets deposited in lending protocols for extra yield), and managed pools (actively rebalanced by a controller).
JIT Liquidity and LP Returns Analysis
Just-In-Time (JIT) liquidity is an MEV strategy where a bot deposits a massive concentrated liquidity position in the same block as a large swap, capturing most of the fees, then withdraws in the next block. The JIT provider earns the fee from the swap with minimal IL exposure (they are only in the pool for one block). Regular LPs suffer because the JIT provider dilutes their fee share during the highest-volume moment.
LP returns analysis requires decomposing your PnL into three components: fees earned, impermanent loss suffered, and token incentive rewards received. DeFi analytics tools provide this breakdown. The key metric is Net APY = Fee APY − IL Rate + Incentive APY. Many pools that appear to offer 50%+ APY are actually delivering negative real returns once IL is subtracted: the incentive tokens mask the loss until they are sold.
The LP profitability rule of thumb
1.If ETH triples in price (r = 3) while you are providing liquidity in a constant-product AMM, what is your approximate impermanent loss?
2.What is the primary advantage of a Uniswap v3 range order compared to a standard limit order?
3.What is JIT (Just-In-Time) liquidity and why is it harmful to regular LPs?
4.Why would you choose an 80/20 weighted pool on Balancer instead of a standard 50/50 pool?
5.A pool shows 50% APY from fees but the underlying token pair has moved 3x in price. What is the likely real return?
Put this lesson to work
Free on Thrive, no account needed.