This article explores Uniswap V3's innovative concentrated liquidity mechanism, which enhances capital efficiency for liquidity providers (LPs) and reduces price impact for traders. We assume familiarity with Uniswap V2's basics.
Key Concepts
Reserve
The reserve of a token refers to the balance held by an Automated Market Maker (AMM) pool. For tokens $x$ and $y$:
- $\\mathsf{reserve}(x)$ or $x$ = Token $x$ balance
- $\\mathsf{reserve}(y)$ or $y$ = Token $y$ balance
Liquidity
Liquidity quantifies the combined reserves of a token pair. It’s typically a function like $xy=k$ (Uniswap V2) or a similar monotonically increasing relationship.
Example:
- Reserves: 1 ETH + 1000 USDC → Liquidity $k=1000$
- Reserves: 1.1111 ETH + 900 USDC → Same $k=1000$
Higher liquidity means the price curve shifts farther from the origin, enabling larger trades with lower price impact.
Liquidity and Price Impact
Price in AMMs
The price of token0 is:
$$ \\mathsf{price}\_0 = \\frac{\\mathsf{reserve}(\\text{token1})}{\\mathsf{reserve}(\\text{token0})} $$
- Visualization: Price correlates with the angle ($\\theta$) of a ray from the origin to the reserve point on the curve.
Price Impact
Every trade alters reserves, thus changing the price:
- Buying
token0reduces its reserve, increasing its price. - The price impact is the post-trade price change.
Example:
- Initial reserves: 10 USDC, 10 USDT ($k=100$)
- Trade: 1 USDC → New reserves: 9 USDC, 11.11 USDT
- Price impact: 23.4% (1.234 USDT/USDC vs. 1.0 initially)
Higher liquidity reduces price impact:
- For $k=10,000$, the same trade yields a 2% price impact.
- For $k=1\\text{ quintillion}$, impact becomes negligible (~0.0000002%).
👉 Learn how to optimize liquidity provision
Capital Efficiency via Concentrated Liquidity
Problem with Uniswap V2
Liquidity is spread across all prices (0 to ∞), much of it unused—especially for stablecoin pairs pegged near 1:1.
Solution in Uniswap V3
LPs concentrate liquidity around expected price ranges (e.g., 0.99–1.01 for stablecoins), removing it from extreme prices. This:
- Boosts liquidity where trades likely occur.
- Reduces capital demand (e.g., $10k liquidity in a narrow range vs. $100k spread broadly).
Mechanism:
- The curve becomes piecewise, with different $k$ values per price segment ("ticks").
- LPs choose ticks to allocate liquidity.
Visualization:
$$
xy =
\\begin{cases}
k\_1 & \\text{if } \\text{tick}\_0 \\leq p < \\text{tick}\_1, \\\
k\_2 & \\text{if } \\text{tick}\_1 \\leq p < \\text{tick}\_2, \\\
\\vdots \\\
k\_n & \\text{if } \\text{tick}\_{n-1} \\leq p < \\text{tick}\_n.
\\end{cases}
$$Uniswap V3 Implementation
Ticks
- Predefined price boundaries where liquidity adjusts.
- Ticks are spaced to optimize gas efficiency and granularity.
Dynamic Liquidity
- As price crosses a tick, liquidity updates seamlessly for the next segment.
- LPs earn fees only when their liquidity is active.
Example:
- ETH/USDC Pool: Liquidity concentrates around current market price (e.g., ~$3,000/ETH).
- Stablecoin Pool: High liquidity near 1:1 ratio.
👉 Explore real-world pool examples
FAQs
Why does concentrated liquidity matter?
It maximizes fee earnings for LPs and minimizes slippage for traders by focusing liquidity where trades occur.
How do LPs choose price ranges?
Based on expected price volatility. Stablecoin LPs use narrow ranges (e.g., 0.99–1.01), while volatile pairs use wider ones.
What happens if the price exits my range?
Your liquidity becomes inactive, and you stop earning fees until the price re-enters your range or you adjust your position.
How does tick spacing affect gas costs?
More ticks = higher precision but increased gas. Uniswap V3 optimizes this balance.
Conclusion
Uniswap V3’s concentrated liquidity revolutionizes AMMs by:
- Enhancing capital efficiency via targeted liquidity provision.
- Reducing price impact for traders.
- Maintaining Uniswap V2’s core mechanics (swaps, LPing, oracles) with added flexibility.
By leveraging ticks and dynamic $k$ values, LPs can optimize returns while traders enjoy competitive pricing—making Uniswap V3 a powerhouse for DeFi liquidity.