Lifecycle
Every launch has a phase stored on-chain. Quubits' interface decides what to show from this phase alone, never from whether a pool happens to exist.
launch ──► [0] NotGraduated ── buy / sell on the curve
│ the buy that sells the last token of the allocation
▼
[1] Swept curve closed; reserves wait in program PDAs
│ seed_pool (permissionless, retryable by anyone)
▼
[2] PoolCreated Raydium CPMM pool, every LP token burned
[3] Rescued terminal; only if no pool exists 30 days after graduation
Phases
| Phase | Trading | What anyone can do |
|---|---|---|
NotGraduated |
Buy and sell on the curve | buy, sell, claim_creator_fees, claim_platform_fees |
Swept |
Paused | seed_pool; after 30 days, rescue |
PoolCreated |
Raydium CPMM pool | Swap on Raydium, sweep_pool_fees, claims |
Rescued |
Closed | redeem tokens for a share of the reserve |
Moving between phases
NotGraduated → Swept. The crossing buy is capped at the remaining allocation and charged only for what it gets. It never fails because the curve completes. The program emits PhaseChanged.
Swept → PoolCreated. seed_pool is permissionless. Quubits' interface sends it in the same transaction as the crossing buy, and the indexer's keeper retries it for any launch it sees in Swept. Anyone else can send it too. See Graduation.
Swept → Rescued. 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 to burn tokens for their share of the reserve: quote_reserve × tokens ÷ sold, rounded down. Before 30 days the program rejects rescue with RescueTooEarly.
A launch can never be stuck: every step after the crossing buy is permissionless and can be retried by anyone.