
XLS-30Live since 2024-03-22
AMM
Pools that price trades by formula, the LP tokens they issue, and what providers risk.
4 lessons16 minDifficulty Checked 2026-11-10An Automated Market Maker holds a pool of two assets and trades them at a rate set by a formula. Depositors get LP tokens. AMMs work alongside the order books, and each trade uses whichever gives the better rate.
- Look up a pool's balances, fee and LP tokens with amm_info.
- Deposit into a testnet pool and receive LP tokens.