You submit a swap transaction on Solana. No order book, no matching engine, no counterparty wallet. Your tokens hit a program holding reserves of two assets, and that program sends the other token back at a price calculated on the spot. Understanding what is a liquidity pool at this level explains most of what you see on a swap screen, including that price impact warning you might be ignoring.
Two Token Reserves and One Formula
A liquidity pool is an on-chain program account holding reserves of two tokens, say SOL and USDC. Any wallet can interact with it: deposit one token, receive the other. The program governing this logic is called an automated market maker, or AMM.
The original design uses a constant-product invariant: reserve_A multiplied by reserve_B equals a constant k. Every trade must leave k unchanged. Deposit SOL and withdraw USDC, and the pool now holds more SOL and less USDC. That shifts the ratio, which shifts the price. The price is not set by anyone actively quoting it; it falls directly out of the reserve ratio after each state change.
Who Actually Deposits the Reserves
The tokens in a pool come from liquidity providers. They deposit both assets in the current reserve ratio and receive LP tokens representing their share of the pool. Each swap charges a fee, often a fraction of a percent, which accrues to the pool and is split among LP holders proportionally.
Providers carry impermanent loss as their primary risk. When the external price of one asset moves, arbitrage trades rebalance the pool's reserves, and the provider's position drifts away from their original deposit split. They can exit with less value than a straight hold would have produced. That risk is the provider's problem, not the swapper's, but it affects whether anyone bothers to supply liquidity in the first place.
Pool Depth and Price Impact Are the Same Problem
Price impact is how much your trade moves the reserve ratio before it completes. A large pool absorbs a given trade size with almost no ratio shift. A small pool shifts noticeably.
Swap $100 of SOL against a pool with millions in reserves, and the constant-product math barely nudges the ratio. Swap the same $100 against a pool holding a few thousand dollars, and you push the price against yourself meaningfully by the time the transaction settles. Same token pair, identical trade size, very different outcome because of depth alone.
This is why new or low-cap tokens often show alarming price impact numbers on modest trade sizes, and why minimum received is the number that actually protects you on thin pools.
Solana Runs Several Pool Designs in Parallel
Constant-product is just the starting point. Solana hosts a few distinct AMM architectures, and the same token pair can trade across many pools at once.
- Constant-product pools spread liquidity across the entire price curve. Easy to implement, but most liquidity sits at prices far from the current market.
- Concentrated liquidity pools, including Orca Whirlpools and Raydium's CLMM pools, let providers target a specific price range. Within that range, the pool behaves as if it were much deeper than its total value would suggest.
- Dynamic liquidity market maker pools, such as Meteora's DLMM, bin liquidity by discrete price levels and can adjust fees based on market volatility.
Some routes also settle against professional market makers quoting firm prices rather than relying on a pool formula at all.
Why Routing Exists
Because liquidity is fragmented across pool designs, programs and tokens, a direct pool-to-pool hop is rarely the full picture. Routing software inspects multiple pools and can split a trade across several of them, or introduce a middle token to reduce the per-pool impact. The guide to how aggregators find routes covers how those paths are computed and evaluated.
swap.io, a Solana swap aggregator, compares quotes from multiple routing providers, Jupiter among them, and surfaces the route and price impact before you confirm. That pre-confirmation view is worth reading before you submit on any thin-liquidity token.
Four Things Worth Checking Before You Swap
- Price impact displayed on the swap screen. It's a direct signal of pool depth behind the route.
- Minimum received. This caps the worst-case slippage; check it before confirming.
- Pool concentration. A token sitting in one small pool behaves nothing like a token spread across deep multi-pool liquidity.
- Provider withdrawal risk. On newly launched tokens, liquidity providers can exit a pool at any time, leaving almost nothing to trade against.
Key Takeaways
- A liquidity pool is an on-chain program holding two token reserves and pricing trades from their ratio.
- Liquidity providers supply both assets, earn swap fees, and absorb impermanent loss as their own risk.
- Larger reserves mean smaller price impact for a given trade size.
- Solana supports multiple AMM architectures, and a single pair often exists across many pools simultaneously.
- Price impact and minimum received are the two on-screen numbers that tell you about pool depth before you sign.
Frequently Asked Questions
Is a liquidity pool the same as a DEX?
Not exactly. A DEX is the application layer; pools are the on-chain mechanism many DEXs use to settle trades. Raydium, Orca and Meteora each deploy and manage their own pools.
Who sets the price in a liquidity pool?
The AMM formula sets it, derived from the current reserve ratio. Arbitrage bots keep pool prices aligned with external markets by trading against any pool that drifts out of sync.
Can a liquidity pool run out of tokens?
A constant-product pool cannot be fully drained through normal trading, because the price moves asymptotically as a reserve shrinks toward zero. Providers can still withdraw their deposits, though, which can leave a pool critically thin.
Do I need to provide liquidity in order to swap?
No. Swapping only interacts with existing pool reserves. Providing liquidity is an entirely separate activity with its own mechanics and risk profile.
If you want to see pool depth and routing in practice, the SOL to USDC swap screen on swap.io shows price impact and the route before you commit to a transaction.
Top comments (0)