The paperExchangeCrypto WikiWikiAcademycrypto.notitiaplatform.com
Sign in
● LIVE
CAC 408 167▲ 0.25%S&P 5007 323,6▼ 0.23%EURO STOXX6 187,8▲ 0.54%BTC/USD63 779▼ 1.29%ETH/USD1 804,6▼ 0.38%EUR/USD1.10▲ 0.19%BRENT89.56▲ 0.44%GOLD3 727,2▼ 0.39%OAT 10Y5.07%▼ 0.73%VIX22.22▼ 9.53%CAC 408 167▲ 0.25%S&P 5007 323,6▼ 0.23%EURO STOXX6 187,8▲ 0.54%BTC/USD63 779▼ 1.29%ETH/USD1 804,6▼ 0.38%EUR/USD1.10▲ 0.19%BRENT89.56▲ 0.44%GOLD3 727,2▼ 0.39%OAT 10Y5.07%▼ 0.73%VIX22.22▼ 9.53%
 
Europe edition
NotitiaCrypto Wiki
Back
Intermediate

Liquidity pools & AMMs

Trading without an order book.

An automated market maker (AMM) replaces the order book with a ‘pool’ of two assets. A formula (often x·y=k) sets the price from the balances. Liquidity providers deposit both assets and earn a share of fees.

This powers decentralised exchanges (Uniswap, Curve). In exchange for fees, providers are exposed to ‘impermanent loss’.

Key takeaways
  • Asset pool vs order book
  • Price set by formula (x·y=k)
  • Fees vs impermanent loss
The x · y = k curve: the bigger the order, the more the price slips
0 k200 k400 k50100150200ETHUSDCbefore · $2,000after selling 10 ETH · $1,653
Worked example

Selling 10 ETH into a 100 ETH pool

A pool holds 100 ETH and 200,000 USDC (quoted price $2,000). You sell 10 ETH at once.

Assumption · Constant-product AMM, 0.30% fee
  1. 01Constant k100 × 200 00020,000,000
  2. 02USDC received (no fee)200 000 − k / (100 + 10)18,182
  3. 03Average price obtained$1,818.18
  4. 04Price impact1 − prix moyen / 2 0009.09 %
  5. 05USDC received with the 0.30% fee18,132
The professional’s reflex

An order worth 10% of the pool costs about 9.1 % in impact. A pro splits the order, routes through an aggregator or sets a tight slippage tolerance.

To watchSelected by the newsroom · loads only when you press play
The liquidity pool algorithm
Whiteboard Crypto · in English
Automated market makers (AMM)
CoinMarketCap · in French

Questions and answers

What is a liquidity pool?

A contract that holds two tokens and lets you swap one for the other at a price set by their ratio.

Why does a large order cost more?

It shifts the token ratio in the pool a lot, and so the price: that is price impact.

Go further in the Wiki
Decentralised exchange (DEX)LiquidityImpermanent loss
✦ Learn by doing

Test your understanding with a quick interactive quiz.

Go further on the technical side · partnerQuantPadTo go from theory to code: auto-graded exercises in Python, SQL and quantitative finance, backtests and mock interviews for quant, data and M&A roles.Train on QuantPad · quantpad.app ↗For your career · partnerKairosKairos finds the roles that fit you every day, scores your CV against each out of 100 and prepares your application.Find my role on Kairos · trykairos.eu ↗
Related concepts
What is a blockchain?BasicsDecentralisationBasicsConsensus: PoW vs PoSIntermediateKeys & walletsBasics