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
FROG-X (fictional market) : Your 10 SOL purchase in this fictional pool moves the displayed price from 0.000100 to about 0.000121 SOL, i.e. +21%. In a pool this size, every large order moves the market, buying or selling.
April-May 2023: PEPE, first on DEXs : PEPE was launched in mid-April 2023 on Ethereum and first traded only on DEXs. Within weeks its market cap went from almost nothing to over a billion dollars, before big centralised platforms listed it. The fall then came quickly. Lesson: on a DEX, any token trades immediately, for spectacular gains and losses alike.
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