FRENESDE

DEXs and liquidity pools (AMM)

A DEX (decentralised exchange) is a program on the blockchain that lets you swap tokens directly from your wallet, without signing up. Most memecoins trade there, often long before (sometimes) reaching a centralised platform.
No order book: a liquidity pool holds two reserves, for example 100 SOL and 1,000,000 FROG coins. The price comes from the ratio: 100 / 1,000,000 = 0.0001 SOL per FROG. This is an AMM (automated market maker).
Most common rule: x × y = k (constant product). When you buy FROG, you add SOL and remove FROG; the product stays constant, so the price rises. The bigger your purchase relative to the pool, the more you pay: that is price impact.
Example: with 10 SOL into this pool, the SOL reserve goes to 110 and the FROG reserve to 100,000,000 / 110 ≈ 909,091. You get ≈ 90,909 FROG, i.e. ≈ 0.00011 SOL per FROG: 10% more than the displayed price. Small pool = prices that jump both ways, including when you sell.

Examples

Key terms

DEX
Decentralised exchange: swapping tokens from your wallet, no sign-up
Liquidity pool
Reserve of two tokens that acts as the counterparty to trades
AMM
Automated market maker: a formula sets the price from the reserves
Price impact
Price rise (or fall) caused by your own order
Take the mission on Doji Academy

← Back to the index