Zimbuck – Your Market. Your Community.
What Is a Liquidity Pool in DeFi? How Automated Market Makers Work, Explained

What Is a Liquidity Pool in DeFi? How Automated Market Makers Work, Explained

5 λεπτ. ανάγνωσης
0
Σχόλια
2
Προβολές

Every decentralised exchange trade you have ever made was filled by a liquidity pool, not by another trader waiting on the other side. Understanding how these pools work — and how the automated market maker (AMM) pricing formula inside them behaves — is the single most useful piece of DeFi knowledge a beginner can pick up. This guide explains pools, the constant-product formula, LP tokens, fees and the main risks, in plain language.

What is a liquidity pool?

A liquidity pool is a smart contract that holds two (sometimes more) tokens in a fixed ratio — for example ETH and USDC — locked in equal dollar value. Anyone can trade against the pool: you send in one token and the contract sends back the other. Anyone can also fund the pool: depositors, called liquidity providers (LPs), add both tokens and earn a share of the trading fees in return.

There is no order book and no matching engine. The pool itself is always the counterparty, which is why a decentralised exchange can quote a price at 3 a.m. on a Sunday with nobody else online.

How the AMM pricing formula works

Most classic pools use the constant-product formula:

x × y = k

Here x is the amount of token A in the pool, y is the amount of token B, and k is a constant that must stay the same after every trade. If you buy token A, x falls, so y must rise to keep k unchanged — and the price of A, which is simply y ÷ x, moves up. The bigger your trade is relative to the pool, the more the price moves against you. That movement is called slippage, and it is pure mathematics, not manipulation.

A worked example makes it concrete. Imagine a pool holding 100 ETH and 300,000 USDC, so ETH's price is $3,000 and k = 30,000,000. A buyer who wants 10 ETH pushes x down to 90, so the pool must hold 30,000,000 ÷ 90 = 333,333 USDC afterwards. The buyer pays 33,333 USDC for 10 ETH — an average of $3,333 per ETH, about 11% worse than the starting price. In a pool ten times larger, the same trade would move the price by roughly 1%. This is why deep pools matter.

What LPs earn — and what LP tokens are

When you deposit, the contract mints LP tokens representing your share of the pool. If you own 1% of the LP tokens, you own 1% of everything in the pool and 1% of the fees it collects. Classic pools charge traders a fee — 0.3% is the long-standing standard on the biggest AMM design — and that fee stays inside the pool, growing its value for LPs. Newer designs let pools choose fee tiers such as 0.05%, 0.3% or 1%, matching the fee to how volatile the pair is.

You redeem your LP tokens at any time to withdraw your share of both tokens. What you withdraw will rarely be the same amounts you put in, because trades have shifted the ratio while your money was inside.

The main risks, honestly stated

- Price divergence: if one token's price moves a lot, the pool rebalances you into the weaker asset — the effect covered in depth in our impermanent loss explainer (https://zimbuck.com/blogs/1242). Discuss live pool examples in the Zimbuck Market News group (https://zimbuck.com/groups/zimbuckmarketnews) and follow DeFi coverage on the Zimbuck News page (https://zimbuck.com/pages/zimbucknews).
- Smart-contract risk: a bug or exploit in the pool contract can drain it. Audits reduce this risk; they never erase it.
- Slippage on exit: withdrawing or trading in a shallow pool moves the price against you, exactly as the worked example shows.
- Fee reality: fees look attractive in volatile weeks and thin out in quiet ones. Annualised figures shown on pool pages are snapshots, not promises.

Pools versus order books

Centralised exchanges match buyers and sellers directly, which gives tight pricing on major pairs but requires a company in the middle holding your funds. Pools trade custody for automation: the contract holds the assets, the formula sets the price, and anyone can become the market maker. Concentrated-liquidity designs narrow the gap by letting LPs choose a price range for their funds, boosting fee efficiency at the cost of more active management. If you want background on how pool pricing interacts with token valuations, our explainer archive linked from the news desk is a useful companion read.

FAQ

What is a liquidity pool in one sentence?
It is a smart contract holding two tokens that anyone can trade against, with prices set by a formula instead of an order book.

What does x × y = k mean?
The amounts of the two tokens in the pool must always multiply to the same constant. Buying one token forces the other side up, which is what moves the price.

How do liquidity providers make money?
LPs earn a share of the trading fees — commonly 0.3% of each trade on classic pools — proportional to their share of the pool, paid by the pool growing in value.

What is slippage in a pool?
The difference between the price you expected and the price the formula gives you, caused by your own trade moving the pool's ratio. Bigger trades and smaller pools mean more slippage.

Are liquidity pools safe?
They remove the need to trust an exchange with custody, but they add smart-contract risk and price-divergence risk. Only deposit what you understand and can afford to lose.

DeFi starts to make sense once pools do. Keep learning with the community at https://zimbuck.com — this article is general educational information only, not financial advice.