Learn · Fundamentals

What is a liquidity pool?

A liquidity pool is the reserve of tokens that an automated market maker trades against. Every swap you make on a decentralized exchange is really a trade with a pool, not with another person. Understanding pools — how they are funded, how fees work, and how depth shapes the price you get — is foundational to everything else in DeFi trading. This article explains what a pool is, who fills it, and why its depth is the most important number behind your quote.

What a pool actually is

A liquidity pool is a smart contract holding two tokens that traders swap between. Anyone can become a liquidity provider by depositing both tokens in the required ratio; in return they receive pool tokens representing their share. Those deposits are the reserves the AMM formula uses to quote prices. When you swap, you add one token to the pool and remove the other, and the pool's balances adjust accordingly.

Who funds pools and why

Liquidity providers fund pools to earn a cut of the trading fees. Every swap charges a small fee that is distributed to providers in proportion to their share. For a high-volume pair, those fees can be a meaningful yield. The risk they accept in exchange is impermanent loss — ending up with less value than simply holding when the two token prices move apart — so providing liquidity is a trade-off, not free income.

Depth determines your price

The amount of capital in a pool — its depth — decides how much your trade moves the price. Deep pools absorb large orders with minimal impact; shallow pools lurch on small ones. This is why the same token can be cheap to trade in one pool and punishing in another, and why checking depth before sizing a trade matters more than glancing at the token's market cap.

Fees and fee tiers

Pools charge a swap fee, and many protocols offer multiple fee tiers for the same pair — lower tiers for stable, predictable pairs and higher tiers for volatile ones to compensate providers for greater risk. The fee is part of your cost on every trade and is separate from any aggregator platform fee and from network gas. An aggregator compares pools across fee tiers and protocols to find the best net result.

Pools and routing

When no direct pool exists between the two tokens you want to trade, an aggregator routes through one or more intermediate pools — for example, your token to a stablecoin, then the stablecoin to your target. Each pool in the path contributes its own fee and price impact. Reading the route shows you which pools your trade touches, and the minimum received reflects the combined effect of all of them.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

What is a liquidity pool in simple terms?

A smart contract holding two tokens that traders swap between. When you swap, you trade against the pool's reserves rather than against another person.

How do liquidity providers make money?

They earn a share of swap fees proportional to their stake in the pool, accepting impermanent-loss risk when the two token prices diverge.

Why does pool depth matter to me as a trader?

Depth determines how much your trade moves the price. Deep pools absorb large orders cheaply; shallow pools cause heavy price impact even on modest trades.

What happens when there is no direct pool?

An aggregator routes through intermediate pools, each adding its own fee and impact. The minimum received reflects the combined cost of the whole path.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet — fully non-custodial.

Continue exploring

Related markets, guides & networks

Curated next steps based on this topic — deepen your research before you trade.

Build programmatically

Swap via API for bots and AI agents — quotes, builds, and cross-chain routes.

Developer quickstart