Docs · Graduation
Guides

Graduation

When the curve sells its last token, the launch moves to Swept. Trading pauses until seed_pool creates the pool.

seed_pool

seed_pool(funding) is permissionless. In one instruction it:

  1. Moves the pool's share of tokens and the whole quote reserve to the launch's graduation PDA (["grad", mint]).
  2. Burns the unsold remainder of the supply.
  3. Creates a Raydium CPMM pool with initialize_v2 at the Quubits PDA ["pool", mint], priced at the curve's closing price.
  4. Burns every LP token, so the liquidity can never be withdrawn.
  5. Closes the graduation PDA's temporary accounts and refunds unused lamports to the caller.

The caller pays rent plus Raydium's pool-creation fee, about 0.18 SOL, passed as funding, and gets back whatever is unused. Compute: about 177k CU. Quubits' interface sends the crossing buy and seed_pool in one transaction with an address lookup table (about 230k CU together).

Why the pool cannot be front-run

The pool's address is a PDA of the Quubits program. Only the program can sign for it, so nobody can create the pool first at a bad price. This is why Quubits uses Raydium CPMM: AMMs whose pool address is fixed per token pair would let any holder create that pool before graduation and block it.

Supply at graduation

Part Share of supply
Sold on the curve 71.43%
Seeds the pool 20.41%
Burned 8.16%

The pool is seeded with q × (X0 − A)² / k tokens against the whole quote reserve, which reproduces the curve's closing price.

Pool fee tier

The pool uses Raydium's 1% fee tier: 0.35% goes to liquidity (and stays in the pool, since the LP is burned) and 0.65% is a creator fee paid to the graduation PDA. sweep_pool_fees moves that creator fee into the launch's fee account and splits it like trade fees: 30% platform, 70% the launch's fee recipient.

If no pool can be created

If a launch has been in Swept for 30 days without a pool, anyone can call rescue. It burns the unsold supply and sets the phase to Rescued. Holders then call redeem(tokens_in): the tokens are burned and the holder receives quote_reserve × tokens_in ÷ sold, rounded down, from the reserve. Every holder gets the same rate.