← Crypto Infrastructure
06.6

Crypto Infrastructure

Nobody is on the other side. The pool is.

On a decentralised exchange there is often no order book at all. You swap against a pool of two assets that liquidity providers deposited in advance — and the price is nothing but the ratio between them, which your own trade changes as it executes.

Assets in the pool you trade against2
Counterparties you have to find0
Steps in one pool swap5
02

The problem

Trade against the pool. Then watch it move under you.

Send USDC into an ETH/USDC pool and take ETH out. The ratio shifts, ETH becomes scarcer, and its price in the pool rises. Press a second time and your own first trade is what makes the second one worse. Then run the identical pair of trades against a pool ten times the size.

One pool, two chambers

ILLUSTRATIVE MODEL
ETH in pool100.00
USDC in pool200,000
Pool price · USDC per ETH2,000
ETH out · trade 1—
ETH out · trade 2—

YOUR OWN TRADES MOVED THE PRICE BY 0.0% SMALL POOL

Pool balances, the 20,000 USDC trade size and every price here are an invented model built to show the mechanism. No real pool, venue or price is being described.

The pool holds ETH and USDC. Press Send 20,000 USDC into the pool.

03

The definition

Three things a pool actually is.

Tap each card. The third is the one most people have filed the wrong way round.

04

Hands on

Two ways to fill the same order.

Switch between the two machines and read the same six questions answered by each. The job is identical; almost nothing else is.

Liquidity pool

AMM

An order book needs someone to have posted the other side before you arrive. A pool does not: the capital was deposited in advance and the formula answers instantly, which is why these venues can trade around the clock. What you give up is the ability to name your price — the pool prices you off its own ratio, and your trade is part of what sets it.

05

The bridge

One swap, five steps.

This is the whole automated market maker, in order. Nothing else happens.

Pools replace the order book and open market infrastructure to anyone willing to supply capital and carry the risk that comes with it. Everything in this lesson happened inside a single chain, though — one pool, one network, one set of assets. The next lesson leaves that boundary behind and asks the awkward question: how do you move an asset from one chain to another at all? Bridges.

06

Check yourself

Five questions.

Answers come straight from this lesson. Submitting completes it.