Reference
Accounts
The accounts a flare lives in.
The accounts a flare lives in, the program that owns each, and the seeds its address derives from. Seeds in quotes are bytes of that string; the rest are the named account's 32-byte address.
| Account | Program | Seeds | Holds |
|---|---|---|---|
| GlobalConfig | launchlab | "global_config", quote_mint (WSOL), curve_type (0), index (0, u16 LE) | Raydium’s trade fee rate, the most a referral share may take, the curve limits, and the only wallet allowed to migrate a sold-out curve. (One, Raydium’s) |
| PlatformConfig | launchlab | "platform_config", platform key | Flare’s platform fee, its fee and Fee Key wallets, the CPMM fee tier flares graduate onto, and how the migrated LP is split. (One, Flare’s) |
| PoolState | launchlab | "pool", flare mint, quote_mint | The curve: status (0 trading, 1 sold out, 2 graduated), virtual and real reserves, tokens sold, the target raise and fees accrued. (One per flare) |
| Pool vaults | launchlab | "pool_vault", pool, mint | The curve’s unsold flare tokens and the SOL it has raised. (Two per flare) |
| Platform fee vault | launchlab | platform_config, quote_mint | The platform fee from every curve trade on every flare, until the keeper claims it. (One, Flare’s) |
| Creator fee vault | launchlab | creator, quote_mint | LaunchLab’s creator fee. Flare sets that fee to 0, so it stays empty. (One per creator) |
| CPMM pool | cpmm | "pool", amm_config, mint0, mint1 | The graduated flare’s reserves and accrued creator fees. Its address is read from the migration. (One per graduated flare) |
| Fee Key | lpLock | "locked_liquidity", Fee Key NFT mint | The locked LP position, owned by the platform key through its NFT. (One per graduated flare) |
| Flare mint | token | An SPL token, 6 decimals. LaunchLab mints the whole supply into the pool vault and revokes the mint authority. (One per flare) |
Finding a flare's accounts
From a mint, everything on the curve derives without a read: the pool is ["pool", mint, WSOL] under LaunchLab, its vaults ["pool_vault", pool, mint] and ["pool_vault", pool, WSOL]. The graduated CPMM pool is different: read its address from the flare's cpmmPool in the API, which the indexer takes from the migration, rather than deriving it from the mints.
The pool's status
A PoolState's status is 0 while the curve trades, 1 once it has sold out and waits for migration, and 2 after migration. The API's phase maps them to curve, migrating and graduated, and adds expired for a curve whose window has closed. That last one exists only in Flare's API; onchain the pool still reads 0.