Reference
Program
The onchain programs Flare runs on.
Flare has no onchain program of its own. Every flare is a Raydium LaunchLab pool under one LaunchLab platform, and graduates into a Raydium CPMM pool. The rules Flare adds (the window, the Attention Index, the treasury share and access lists) are computed by its API and worker from what those programs record.
| Program | Address | Role |
|---|---|---|
| Raydium LaunchLab | LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj | The bonding curve every flare launches and trades on, and the platform config Flare administers. |
| Raydium CPMM | CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C | The pool a flare trades in after graduation. |
| Raydium LP-Lock | LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE | Holds the graduated pool’s LP, locked into the platform’s Fee Key. |
| Metaplex Token Metadata | metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s | A flare’s name, symbol and metadata URI, written by LaunchLab at launch. |
| System Program | 11111111111111111111111111111111 | Carries each creator’s marketing treasury payout in SOL. |
The platform
One key, the platform key, is all of the platform's roles: the admin of its LaunchLab PlatformConfig, its fee wallet, the wallet its Fee Keys are minted to, and the creator of every graduated CPMM pool. So every fee stream lands with it, and the keeper pays each creator's share out of it. The PlatformConfig sets:
| Setting | Value |
|---|---|
| Platform fee on every curve trade | 2.75% |
| LaunchLab creator fee | 0% |
| Migrated LP | All of it locked into the platform's Fee Key |
| Graduated pool fee tier | 0.2% trade fee, 1.9% creator fee, charged in SOL |
| Restrictions | None: launches use Raydium's WSOL GlobalConfig and its constant-product curve |
GET /v1/platform returns the live PlatformConfig and GlobalConfig addresses and every rate.
The curve
Every launch uses the same constant-product curve: 1,000,000,000 tokens with 6 decimals, 793,100,000 of them sold on the curve for 85 SOL. LaunchLab mints the whole supply into the pool's vault at launch and revokes the mint authority, so no more tokens can be made.
Reading the chain
The worker indexes LaunchLab's TradeEvent and PoolCreateEvent (emitted by self-CPI, read from inner instructions) and CPMM's SwapEvent (read from the logs), and reads each migration to find the new pool and Fee Key.
| Event | Program | From | Carries |
|---|---|---|---|
PoolCreateEvent | launchlab | initialize_v2 | The new pool, its creator and its curve parameters. |
TradeEvent | launchlab | buy_exact_in, sell_exact_in | Amounts in and out, every fee, the reserves after, and the pool status after the trade. |
SwapEvent | cpmm | swap_base_input | Amounts in and out and the fees of a graduated trade. |
Accounts lists what each flare lives in, and Instructions every instruction Flare sends or follows.