Flare
App

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.

ProgramAddressRole
Raydium LaunchLabLanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3ujThe bonding curve every flare launches and trades on, and the platform config Flare administers.
Raydium CPMMCPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1CThe pool a flare trades in after graduation.
Raydium LP-LockLockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwEHolds the graduated pool’s LP, locked into the platform’s Fee Key.
Metaplex Token MetadatametaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1sA flare’s name, symbol and metadata URI, written by LaunchLab at launch.
System Program11111111111111111111111111111111Carries 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:

SettingValue
Platform fee on every curve trade2.75%
LaunchLab creator fee0%
Migrated LPAll of it locked into the platform's Fee Key
Graduated pool fee tier0.2% trade fee, 1.9% creator fee, charged in SOL
RestrictionsNone: 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.

EventProgramFromCarries
PoolCreateEventlaunchlabinitialize_v2The new pool, its creator and its curve parameters.
TradeEventlaunchlabbuy_exact_in, sell_exact_inAmounts in and out, every fee, the reserves after, and the pool status after the trade.
SwapEventcpmmswap_base_inputAmounts 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.