XRPL DEX and AMM: liquidity provision explained
The XRP Ledger runs two trading systems side by side: a classic order book and automated market maker pools. Liquidity provision works differently in each, and the tradeoffs are structural, not cosmetic.
The order book model
- Traders place limit orders; matches happen at the price you set or better
- Makers add depth and earn the spread when their orders trade
- No impermanent loss: an unfilled order is just an order, not a position that drifts
- Depth is visible, so slippage is measurable before you trade
The order book is the right tool for precision entries and for assets with natural taker flow.
The AMM model
- Pools hold token pairs, and the pricing curve quotes any trade size automatically
- Liquidity providers deposit pairs and earn a share of swap fees
- Positions drift: as prices move, the pool rebalances and the provider ends up holding more of the falling asset
- That drift is impermanent loss, and it is the cost of passive provision
AMM pools are the right tool for continuous flow and for assets that have no natural maker community.
What provision actually pays
- Order book making: spread capture minus adverse selection, and adverse selection is the part nobody advertises
- AMM fees: a percentage of each swap, distributed pro-rata to providers
- Net position: what is left after impermanent loss eats the fee share
- On the ledger, fee tiers and pool designs vary, so the published rate is not the earned rate
The honest comparison is fee yield versus drift loss on the same period. Many positions underperform a simple hold once drift is priced.
The risks by model
- Order book: stale quotes get picked off, and depth vanishes exactly when volatility arrives
- AMM: concentrated drift in trending markets, and rug dynamics when a pool pairs a deep asset with a thin one
- Both: token risk. Providing liquidity to a token means holding whatever the token turns into
Choosing where to provide
- Match the model to the flow: order books for taker-heavy pairs, AMMs for long-tail assets
- Size positions against drift tolerance, not against advertised APY
- Track net performance: fees minus drift, measured over weeks, not hours
The takeaway
The ledger offers two ways to be a market: set prices and earn spread, or deposit pairs and earn fees. The first rewards precision, the second rewards patience, and both reward honesty about what provision costs. Compute the net before committing the pair.