EN

Deposits and withdrawals

4 minDifficulty Checked 2026-11-10
Key takeaways
  • Depositing both assets in the pool's ratio carries no fee.
  • Depositing or withdrawing one asset pays the trading fee on the part that must be swapped.
  • Creating a pool destroys 0.2 XRP instead of the normal transaction cost.

There are two ways into a pool.

Both assets. You add XRP and FOO in the same ratio the pool already holds. The pool gets bigger and its price does not move. No fee.

One asset. You add only XRP. That would tip the balance, so the pool treats part of your deposit as a swap into FOO. You pay the trading fee on that part. You get slightly fewer LP tokens than with a balanced deposit.

Leaving works the same way. Take both assets in the pool's ratio and there is no fee. Take only one and you pay the fee on the part that had to be swapped.

LP tokens arrive on a trust line to the pool's account. The ledger opens that line for you. It locks 0.2 XRP of reserve like any other trust line.

Anyone can start a pool for a pair that has none. The creator supplies both assets and picks the starting fee. The starting ratio sets the starting price, so a wrong ratio gives traders a cheap deal at the creator's expense.

A pool ends when the last LP tokens are redeemed and it holds nothing. The ledger then deletes it.

Check yourself3 questions
1. Which deposit carries no AMM fee?
2. What does AMMCreate cost, beyond the two assets?
3. One token in a pool is frozen by its issuer. Can you deposit the other asset?
Sources
Next lessonFee votes and the auction slot4 min