Automated Market Makers (AMMs)
An automated market maker, or AMM, is a pool of two assets that anyone can trade against. People who fund the pool, called liquidity providers, earn a share of its trading fees.
- Section
- Concepts
In plain words
Each AMM holds a pool of two different assets. At most one can be XRP, and one or both can be trust line tokens. You swap one asset for the other at a rate set by a mathematical formula. There can be only one AMM for any pair of assets, and anyone can create it if it does not exist yet. AMMs were added by the AMM amendment, enabled on 22 March 2024.
How the price moves
The rate depends on the balance of the two assets in the pool. As the pool's supply of one asset goes down, the price of that asset goes up, and the other way round. A larger pool generally gives better rates, because a trade shifts its balance less. The AMM also charges a percentage trading fee on top. Your offers and cross-currency payments use AMMs automatically, alone or mixed with offers from the order book, depending on what is cheaper.
LP tokens
When you deposit assets you receive LP tokens, which stand for your share of the pool. Whoever creates the AMM receives LP tokens for 100% of the pool. You can redeem LP tokens to withdraw your share of both assets, including collected fees, and the AMM charges no fee when you withdraw both assets. LP tokens are issued by an AMMDeposit transaction and redeemed by an AMMWithdraw transaction. When all LP tokens are redeemed and the pool is empty, the AMM is deleted.
Fees and the auction slot
Liquidity providers vote on the trading fee, from 0% to 1%, with each vote weighted by the LP tokens the voter holds. Up to 8 votes are counted. A liquidity provider can also bid LP tokens for the auction slot. The winner pays one tenth of the normal trading fee for a 24-hour period and can name up to 4 more accounts to receive the discount.
Good to know
Trading fees are income for liquidity providers. They offset the risk that the relative price of the two assets shifts, which can mean a loss. An asset in an AMM cannot be an LP token from another AMM. If a pool holds a frozen asset, its LP tokens are frozen too. Creating an AMM has a special transaction cost that burns a larger than usual amount of XRP.
Automated Market Makers (AMMs) are an essential part of cryptocurrency, providing liquidity between asset pairs. Learn more about AMMs and the XRP Ledger.xrpl.org
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made