Flare
App

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.

AccountProgramSeedsHolds
GlobalConfiglaunchlab"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)
PlatformConfiglaunchlab"platform_config", platform keyFlare’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)
PoolStatelaunchlab"pool", flare mint, quote_mintThe 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 vaultslaunchlab"pool_vault", pool, mintThe curve’s unsold flare tokens and the SOL it has raised. (Two per flare)
Platform fee vaultlaunchlabplatform_config, quote_mintThe platform fee from every curve trade on every flare, until the keeper claims it. (One, Flare’s)
Creator fee vaultlaunchlabcreator, quote_mintLaunchLab’s creator fee. Flare sets that fee to 0, so it stays empty. (One per creator)
CPMM poolcpmm"pool", amm_config, mint0, mint1The graduated flare’s reserves and accrued creator fees. Its address is read from the migration. (One per graduated flare)
Fee KeylpLock"locked_liquidity", Fee Key NFT mintThe locked LP position, owned by the platform key through its NFT. (One per graduated flare)
Flare minttokenAn 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.