Fees and graduation

What fees a pool charges, how the protocol share works, and what graduation does.

On this page
  1. Pool fee
  2. Protocol share
  3. Launch fee
  4. Graduation
  5. Quote asset
  6. Bounds the code imposes

Pool fee#

The creator picks the fee when launching, from 0 to 1,000 basis points (up to 10%). The fee is rounded up, so it never falls in the trader's favour. It is charged on the quote amount paid in (a buy) or on the gross proceeds (a sell).

Protocol share#

The creator also sets what share of the fee is the protocol's (0 to 10,000 basis points). The pool keeps the rest in its reserves. The protocol share accumulates in a counter in the pool's accounting.

Launch fee#

The module can require a fee for every launch. Its default is none. The network sets the amount, in XLH.

Graduation#

If the pool was launched with a graduation threshold above zero, then when a buy takes the real quote reserve to or past that threshold, the pool graduates:

  1. The virtual quote reserve is removed.
  2. The pool keeps just enough tokens to keep the price from rising; the rest of the pool's tokens are burned.
  3. The pool continues as an ordinary constant-product pool backed only by real reserves. Those reserves are owned by the pool and are permanently locked. Users cannot deposit liquidity into a graduated pool or withdraw it.

Graduation never raises the price, and the burned amount is public. A pool launched with a threshold of zero never graduates.

Quote asset#

The module can be told to accept only one designated quote asset for all pools; by default any asset is accepted, so a launched token can become another pool's quote asset. Pools are intended to be priced in XLH, the currency for launches and pools; the exact policy is still to be set in the module.

Bounds the code imposes#

SettingBound
Pool fee0 to 1,000 basis points
Protocol share of the fee0 to 10,000 basis points
Intent lifetime1 to 2^32 blocks, default 64
AmountsAt most 2^63 - 1

No minimum economic parameters are imposed: a launch with a tiny virtual reserve is accepted.

Lathen documentation.