Sheet 05 · 6 tools
AMM
Automated Market Maker pools: create, deposit, withdraw, bid, vote.
Margin note — new here? Start with this
An Automated Market Maker (AMM) is a pool holding two assets that anyone can trade against — the pool itself quotes prices from the ratio of what it holds. People who deposit into the pool (liquidity providers) receive LP tokens, which are receipts for their share of the pool and its trading fees. XRPL's AMMs are built into the protocol and work alongside the order-book DEX: trades automatically take the better price.
An AMM is like a neighborhood currency-exchange kiosk that a group of neighbors stocked together. Anyone can walk up and swap at the posted rate, the kiosk adjusts its rate after every swap based on what is left in the till, and the neighbors who stocked it split the small fee every customer pays.Start here: AMM Pool Info
Create AMM Pool
Create a new Automated Market Maker pool for an asset pair with an initial deposit. Burns a special AMMCreate fee (one owner reserve) — this is intentional anti-spam.
AMM Deposit
Add liquidity to an AMM pool and receive LP tokens. Provide both amounts for a balanced deposit or one amount for a single-asset deposit.
AMM Withdraw
Withdraw liquidity from an AMM pool. Provide both amounts, one amount (single-asset), or neither to withdraw everything (tfWithdrawAll).
AMM Auction Bid
Bid LP tokens for the AMM's 24-hour auction slot, which grants discounted trading fees. Optionally authorize extra accounts on the slot.
AMM Fee Vote
Vote on an AMM pool's trading fee. Your vote is weighted by the share of LP tokens you hold.
AMM Pool Info
Get an AMM pool's state: pooled amounts, LP token, trading fee, auction slot, and fee votes.