Earn trading fees by providing liquidity to AMM pools on the XRP Ledger. Here's how it works.
An Automated Market Maker (AMM) is a pool of two tokens that enables trading without a traditional order book. Instead of matching buyers and sellers, AMM pools use a mathematical formula (constant product: x × y = k) to determine exchange rates automatically.
On the XRPL, AMM pools are built into the protocol - no smart contracts needed. This means they have the same security guarantees as the ledger itself: no exploitable contract code, no admin keys, no upgradeable proxies.
Each AMM pool holds two tokens in a specific ratio. When someone trades, they add one token and remove the other, and the pool's formula adjusts the price accordingly. The trading fee (typically 0.1-1%) is set by liquidity providers through a voting mechanism.
The XRPL also supports auto-bridging through XRP. If you trade Token A for Token B but there's no direct pool, the ledger can route through XRP automatically - Token A → XRP → Token B - checking both AMM pools and the order book for the best rate.
| # | Pool | APY |
|---|---|---|
| 1 | XRP/SUNFLOWER | 581.7% |
| 2 | BRISTLY/XRP | 25.8% |
| 3 | XRP/JESTERBEAR | 135.9% |
| 4 | RIO/XRP | 113.1% |
| 5 | XRP/BTC2XRP | 50.9% |
Full pool data on the AMM Pools page. APY based on 24h fees annualized.
You'll need a trustline for both tokens in the pool, plus the LP token itself. XRPL.to handles trustline creation automatically.
Every time someone trades through your pool, a trading fee is charged and added back to the pool. This increases the value of your LP tokens over time - you earn fees continuously without doing anything.
The fee rate is determined by a voting mechanism: liquidity providers vote on the trading fee (0-1%), and the pool uses a weighted average based on each LP's share. Larger LPs have more influence over the fee.
You can check current APY, volume, and fees earned for each pool on the AMM Pools page. Sort by fees or APY to find the most profitable pools.
Impermanent loss occurs when the price ratio of the two tokens changes after you deposit. If one token's price rises significantly relative to the other, you would have been better off simply holding both tokens instead of providing liquidity.
The loss is "impermanent" because it reverses if prices return to their original ratio. Trading fees you earn can offset impermanent loss - high-volume pools with stable price ratios tend to be the most profitable for LPs.
The XRPL is unique in having both a central limit order book (CLOB) and AMM pools at the protocol level. When you trade on XRPL.to, the swap router automatically checks both sources and gives you the best available rate.
For more on how swaps work, see How to Swap Tokens on the XRPL DEX.
Start earning trading fees by providing liquidity to XRPL AMM pools.