EN

Pools and LP tokens

4 minDifficulty Checked 2026-11-10
Key takeaways
  • An AMM is a pool of two assets. Each asset pair has at most one.
  • The rate comes from the pool's balance. Every trade moves it.
  • LP tokens redeem for a share of whatever the pool holds at that time.

An order book needs two people who want opposite things at the same time. An Automated Market Maker, or AMM, takes away the waiting. It is a pot that holds two assets, such as XRP and FOO. Anyone can trade with the pot at any time.

The pot has no price list. It uses a rule: the scarcer an asset gets in the pot, the more it costs.

  • You take FOO out and put XRP in. Now the pot has less FOO. FOO costs more for the next person.
  • Someone does the reverse. FOO gets cheaper again.

A big pot barely moves when you trade. A small pot moves a lot. So large pools give better rates on the same trade.

The assets in the pot come from liquidity providers. They deposit and get LP tokens back. LP tokens are a receipt for a slice of the pot. Hand them back and you get your slice of both assets.

Your slice is a share of whatever is in the pot on that day, and the mix changes with every trade. Say you start a pool with 5 ETH and 5 USD. Someone swaps 1.26 USD for 1 ETH. The pool now holds 4 ETH and 6.26 USD. Half the LP tokens now redeem for 2 ETH and 3.13 USD.

The pool charges a small trading fee on each swap. The fee stays in the pot, so it grows every provider's slice.

Check yourself3 questions
1. A trader buys FOO from an XRP/FOO pool. What happens to the pool's FOO price?
2. How many AMMs can exist for one pair of assets?
3. What does an LP token give its holder?
Sources
Next lessonDeposits and withdrawals4 min