
Decentralized exchanges using automated market makers (AMMs) processed over $1 trillion in volume in 2025, fundamentally changing how cryptocurrency trading works. Understanding AMM mechanics, liquidity provision economics, and impermanent loss is essential for anyone using DeFi.
How AMMs Differ from Order Book Exchanges
Traditional Order Books (Coinbase, Binance):
- Buyers post bids, sellers post asks
- Orders match when prices align
- Market makers provide liquidity
- Requires sufficient buyers/sellers for each pair
- Low liquidity pairs have wide spreads
Automated Market Makers (Uniswap, SushiSwap):
- No order books or market makers
- Algorithmic pricing via mathematical formulas
- Anyone can provide liquidity and earn fees
- Works for any token pair
- Pricing determined by pool ratios, not human traders
The revolution: AMMs enable trading any token without requiring centralized market makers or matching counterparties.
Constant Product Formula (x * y = k)
Uniswap v2 uses simple formula: x × y = k where:
- x = quantity of token A in pool
- y = quantity of token B in pool
- k = constant that never changes
Example: Pool has 10 ETH and 20,000 USDC. k = 10 × 20,000 = 200,000.
Someone buys 1 ETH:
- Pool loses 1 ETH, now has 9 ETH
- To maintain k = 200,000: 9 × y = 200,000
- y = 22,222 USDC
- Pool needs 22,222 USDC, had 20,000, so buyer pays 2,222 USDC
- Price: 2,222 USDC per ETH
The more you buy, the worse the price (slippage). The formula ensures pools never run dry: price approaches infinity as reserves approach zero.
Why You Earn Fees Providing Liquidity
Liquidity providers (LPs) deposit equal value of both tokens. In return, they receive LP tokens representing pool ownership percentage.
Economics:
- Each trade pays 0.3% fee (Uniswap v2)
- Fees distribute proportionally to LP token holders
- More trading volume = more fees earned
- LPs can withdraw anytime, receiving proportional share of pool + accumulated fees
Example: Provide $10,000 to ETH/USDC pool ($5,000 each). Pool total is $1,000,000, so you own 1%. All fees from trades are split, you earn 1% of total fees. If pool does $1,000,000 daily volume at 0.3% fee, that’s $3,000 daily fees. Your 1% = $30/day = ~900% APY.
Reality: high-volume pairs have so much liquidity that APYs are lower (5-30%). Low-volume pairs offer higher percentages but risk impermanent loss.
Impermanent Loss: The Math and Psychology
Providing liquidity sounds great until you understand impermanent loss (IL): the difference between holding tokens vs providing liquidity.
The Math: You provide 1 ETH + 2,000 USDC when ETH = $2,000. ETH doubles to $4,000.
If you held: 1 ETH = $4,000 + 2,000 USDC = $6,000 total
In the pool: x × y = k. Original: 1 × 2,000 = 2,000. ETH doubles, arbitrageurs rebalance pool: √(2,000 × 2) = 0.707 ETH Pool now has 0.707 ETH and 2,828 USDC. Your value: 0.707 × $4,000 + 2,828 = $5,656.
Impermanent Loss: $6,000 – $5,656 = $344 (5.7% loss)
The pool rebalanced as ETH rose, selling your ETH for USDC. You “sold” ETH at average prices instead of holding. Fee income must exceed IL for profitability.
When Providing Liquidity Makes Sense
Good Scenarios:
- Stablecoin pairs (USDC/DAI): minimal IL, steady fees
- High-volume pairs: fees offset IL
- Balanced exposure desired: want both tokens anyway
- Tokens expected to trade sideways: no IL if prices stay constant
Bad Scenarios:
- Strong directional bias: just hold the appreciating asset
- Low-volume pairs: fees don’t compensate IL
- Volatile pairs (memecoins): extreme IL risk
- Short time horizons: fees need time to accumulate
The Math: Use calculators (dailydefi.org/tools/impermanent-loss-calculator/) to model IL at different price ratios. 2x price change = 5.7% IL. 3x = 13.4% IL. 5x = 25.5% IL.
Comparing Uniswap v2, v3, v4
Uniswap v2:
- Simple constant product formula
- Liquidity spread across entire price range (0 to ∞)
- 0.3% fee for all pairs
- Easy to understand, capital inefficient
Uniswap v3:
- Concentrated liquidity: LPs choose price ranges
- Earn fees only when price in your range
- Multiple fee tiers (0.05%, 0.3%, 1%)
- Higher capital efficiency but requires active management
Uniswap v4:
- Customizable hooks enable limitless pool configurations
- Lower gas costs through singleton contract
- Dynamic fees based on volatility
- Expected to launch in 2026
For Passive LPs: v2 or v3 with wide ranges. Set and forget. For Active LPs: v3 with narrow ranges around current price, rebalance regularly. For Developers: v4 enables custom AMM logic via hooks.
Capital Efficiency Improvements
Uniswap v3’s concentrated liquidity revolutionized capital efficiency.
Example: v2: Provide $10,000 liquidity across entire price range (0 to ∞), most capital never used.
v3: Provide $10,000 concentrated in range where 95% of trades occur. Effective liquidity = $50,000-$100,000 compared to v2 pool.
Result: LPs earn 5-10x more fees per dollar of capital. But if price leaves range, earn zero fees until it returns.
Active Management Required: Successful v3 LPs monitor pools, adjust ranges as prices move, compound fees. Passive LPs often underperform v2 due to range selection mistakes.
Real Returns After All Costs
Marketing says “500% APY!” Reality is different after accounting for:
Gas Costs:
- Depositing liquidity: $20-100
- Withdrawing liquidity: $20-100
- Claiming fees: $10-50
- Rebalancing v3 ranges: $20-100 per adjustment
Impermanent Loss: Often exceeds fee income
Smart Contract Risk: Exploits could drain pools
Rug Pull Risk: Project teams dump tokens, crushing price
Opportunity Cost: Would holding outperform providing liquidity?
Realistic Returns: Stablecoin pairs: 3-15% APY. ETH pairs: 5-30% APY (if fees exceed IL). Exotic pairs: Extremely variable, often negative after IL.
The Bottom Line
AMMs revolutionized DeFi by enabling permissionless market making. Anyone can earn fees by providing liquidity. But impermanent loss is real, capital efficiency requires expertise, and marketed APYs rarely match realized returns.
For most users: provide liquidity to stablecoin pairs for steady income with minimal IL, or concentrate liquidity in high-volume ETH pairs if comfortable with active management. Avoid exotic pairs unless fee income clearly justifies IL risk.
AMMs are beautiful mathematics enabling decentralized trading. But like all financial instruments, understand mechanics before risking capital. The constant product formula is elegant: the economics are complex.
Let’s Connect:
Follow us on X: https://x.com/OnchainNewsBlog
Join our Telegram channel: https://t.me/onchainnewsblog
Subscribe to our newsletter: https://onchainnews.blog/newsletter-alpha/
Disclaimer
The information provided in this article is for informational and educational purposes only and should not be construed as financial, investment, or trading advice. Onchain News does not provide recommendations to buy, sell, or hold any asset, and nothing here should be taken as a guarantee of future performance. Always conduct your own research and consult a qualified financial professional before making any investment decisions. Cryptocurrency markets are volatile and you are responsible for your own risk.





Leave a Reply