AMM Overview
The XYZ AMM is a constant-product automated market maker that provides trading for tokens that have graduated from the Launchpad. It uses the standardx * y = k formula, where trading fees stay in the pool to benefit liquidity providers.
How It Works
The AMM maintains pools of two assets: XYZ and a CW20 token. The product of both reserves stays constant (minus fees):Price Formula
Pool Creation
Pools are created automatically when a launchpad token graduates. Only the launchpad contract (an authorized creator) can create new pools. When a token graduates at its dynamic XYZ threshold:| Asset | Amount Added to Pool |
|---|---|
| XYZ | All curve reserves |
| Token | All unsold tokens from the curve (~20.69M) |
Fee Structure
| Fee | Rate | Details |
|---|---|---|
| Base swap fee | 1% (100 bps) | Applied to all swaps; stays in the pool |
| Augmented fee | 0-5% (optional) | Extra fee on new pools; auto-disables at target |
How Fees Work
Swap fees are deducted from your input before the trade calculation. The fee tokens stay in the pool, increasing reserves. This means LP positions grow in value over time as fees accumulate — the fee auto-compounds.Augmented Fee
Newly graduated pools may have a temporary augmented fee (up to 5%) on top of the base 1%. This extra fee auto-disables once the pool’s total value reaches a target threshold. You can check the status:active, the current pool value, and progress toward the target.
Querying Pool Info
Get the current state of any pool:Listing All Pools
token_address as start_after for pagination.