For most of financial history a trade required two people who disagreed. One wanted to sell at a price, another wanted to buy at a price, and an order book existed to line those intentions up. Bids on one side, asks on the other, matched by price and then by who arrived first. It is an elegant structure and it has run the world's markets for a very long time.
It also has a hidden requirement. An order book only works when professional market makers stand there quoting continuously and adjusting as conditions shift. That means an enormous stream of messages, the overwhelming majority of them cancellations and replacements rather than trades. On early public blockchains each update would have been a transaction with a fee and a wait, which is why the first generation of on-chain trading was close to unusable.
The pool
The alternative that took over is almost aggressively simple. Put two assets into a shared pot and define a rule about how much of one you must add to remove some of the other. The classic rule says the two balances multiplied together must not decrease. Give the pool one asset, take the other, and the amount you receive is whatever keeps that product intact after the fee.
There is no counterparty and no quoting. The pool is always willing to trade, and its price is nothing more than the ratio of what it currently holds. Take a large amount of one side and that side becomes scarce inside the pool, so it gets progressively more expensive as your trade proceeds. Price impact is not a penalty added on top. It is the mechanism itself, which is why a small pool cannot absorb a large order at any sensible price.
That raises an obvious question. If nobody is quoting, where does the correct price come from? From arbitrage. When a pool drifts cheaper than the rest of the world, someone buys from it until it no longer is. The pool knows nothing and believes nothing. It is dragged into line by people who do, and the fees they pay on the way help make the arrangement viable.
Who is actually on the other side
The assets belong to liquidity providers, participants who deposited both sides and receive a share of every trading fee. Their cost is less obvious than their income, and it is the most misunderstood thing in decentralised trading.
A pool mechanically sells whichever asset is rising and buys whichever is falling. It has no choice, because buyers keep removing the appreciating side and adding the depreciating one. The provider therefore ends up holding relatively more of whatever performed worse. Measured against simply keeping the two assets in a wallet, the provider is behind by an amount that grows with how far the price moved. The industry calls this impermanent loss, which is an unhelpful name, because it only reverses if the price happens to come back.
Supplying liquidity is therefore a bet that accumulated fees exceed that drift. In a heavily traded pair that mostly moves sideways, it is frequently a good bet. In a volatile pair travelling in one direction, it frequently is not, and the fees never catch up.
A liquidity pool is a machine that sells the winner and buys the loser, deliberately, all day, on your behalf.
Refinements that followed
- Concentrated liquidity, where providers choose a price range instead of spreading capital across every conceivable price. Far more fee income for the same money, at the cost of active management and of being converted entirely into one asset when the price leaves the range.
- Purpose-built curves for assets meant to trade near parity, which stay almost flat around the peg and steepen sharply at the edges, so that large trades between things intended to be equivalent barely move the price.
- Aggregators and routers that split one order across many pools and venues at once, which means the pool you traded against is often not the one you selected.
- The return of the order book. On a chain where quoting and cancelling cost very little and confirm quickly, fully on-chain central limit order books become viable again, and several run on Solana precisely for that reason.
The tax you cannot see on the screen
Trades are visible before they are final, and that visibility has value to somebody else. A party who sees your purchase arriving can buy immediately before it and sell into the price your trade creates, a pattern known as sandwiching. Solana does not have a single global waiting room of pending transactions in the way older designs do, but transactions still pass through the current leader and through block building infrastructure, so the problem exists in a different shape rather than being absent.
Mitigations are real and partial. Private order flow arrangements, tighter slippage limits, batching designs that settle many orders at one price. Which of these are genuine fixes and which merely relocate the extraction is an argument the field is still having, and anyone who tells you it has been settled is describing a product rather than a state of the world.
The deeper shift is philosophical. An order book asks what a human being is willing to pay right now. A pool asks what the formula says, and then lets the outside world correct it through arbitrage. Most on-chain trading now begins with the second question. The interesting development of recent years is that the first one has quietly moved back in next door, and the two now coexist on the same rails.