·6 min read
DeFiEducationSolanaTrading

What Is a Liquidity Pool? DeFi's Core Mechanism Explained

Liquidity pools power every DEX swap. Understanding how they work — and how LPs get paid — is foundational to using DeFi confidently.

Every time you swap tokens on a DEX like Jupiter or Uniswap, you're trading against a liquidity pool — not a counterparty. Understanding how pools work explains why slippage happens, how liquidity providers earn fees, and why some pools are safer to trade against than others.

How a Liquidity Pool Works

A liquidity pool is a smart contract holding two (or more) tokens in fixed ratio. The most common model is an automated market maker (AMM) using the constant product formula:

x × y = k

Where x and y are the quantities of each token, and k is a constant. When you buy token A, you add token B to the pool and remove token A. This shifts the ratio, moving the price. The more you buy relative to pool size, the more the price moves — this is price impact (also called slippage).

Example: a pool holds 100 SOL and 10,000 USDC (SOL price = $100). If you want to buy 10 SOL, you'd add roughly 1,111 USDC to maintain the constant product. You paid $111/SOL instead of $100 — a 10% price impact. Larger pool = smaller impact for the same trade.

Liquidity Providers: Who Funds the Pools

Liquidity providers (LPs) deposit equal value of both tokens into a pool. In return they receive LP tokens representing their share, and earn a fraction of every swap fee (typically 0.1%–0.3% per trade).

This sounds attractive — passive fee income from other people's trading. The catch is impermanent loss.

Impermanent Loss Explained

When you provide liquidity and prices change significantly, you end up with less value than if you'd just held the tokens. The AMM automatically rebalances by selling the appreciating asset and buying the depreciating one — the opposite of what a long-term holder wants.

Example: you deposit 1 SOL + $100 USDC when SOL = $100. SOL doubles to $200. The AMM rebalances you to 0.71 SOL + $141 USDC (~$283 total). If you'd just held: 1 SOL + $100 = $300. You lost $17 compared to holding — that's impermanent loss (~5.7%).

The loss is "impermanent" because if prices return to original levels, it disappears. It becomes permanent when you withdraw at diverged prices.

For most retail LPs, impermanent loss exceeds fee income unless they're providing liquidity on stablecoin pairs (where prices don't diverge) or very high-volume pairs.

Concentrated Liquidity

Newer AMM designs (Uniswap v3, Orca Whirlpools on Solana) allow LPs to concentrate liquidity in a specific price range. A $10K deposit providing liquidity between $95–$105 for SOL has the same effective depth as $1M in a full-range pool — within that range.

This dramatically increases capital efficiency and fee earnings. The tradeoff: if price moves outside your range, you stop earning fees and hold 100% of one asset (full impermanent loss exposure).

How This Affects Your Swaps

As a trader (not an LP), understanding pools helps you:

Choose the right pool depth — Large pools have lower slippage for the same trade size. Jupiter automatically routes to the deepest available liquidity for each pair.

Understand slippage settings — Setting 5% slippage on a thin pool exposes you to MEV sandwich attacks. Tight slippage (0.5% for liquid pairs) is safer.

Interpret price impact warnings — When SovereignSwap or Jupiter warns about high price impact (>1%), it means your trade is large relative to pool size. Consider splitting into smaller trades.

Swap with optimal routing on SovereignSwap →

Liquidity Pools and $SOVAI

SovereignSwap earns platform fees on every swap routed through it. A portion of those fees flows to $SOVAI stakers — making stakers the passive beneficiaries of trading volume, similar to how LPs earn fees, but without impermanent loss risk.

Join the $SOVAI presale →

Read the impermanent loss deep-dive →

$SOVAI Presale — Q2 2026

15M tokens at $0.0005 — 50% below DEX listing

Real yield from AI trading revenue. Fixed supply. No emissions. Join the waitlist for early access.

By joining you agree to our Terms of Service and Privacy Policy.

built by gruesøme · Powered by SovereignAI