Program
Quubits is one Anchor program. Its address is not yet deployed; see Addresses.
Instructions
| Instruction | Who can call | Purpose |
|---|---|---|
launch_token |
creator | create a launch, revoke authorities, optional dev buy |
buy |
anyone | buy on the curve |
sell |
anyone | sell to the curve |
seed_pool |
anyone | create the Raydium CPMM pool and burn every LP token |
rescue |
anyone, after 30 days in Swept |
burn the unsold supply, phase becomes Rescued |
redeem |
holders of a Rescued launch |
burn tokens for a pro-rata share of the reserve |
sweep_pool_fees |
anyone | move the pool's creator fee into the launch's fee account |
claim_creator_fees |
anyone | push creator fees to the launch's fixed recipient |
claim_platform_fees |
anyone | push platform fees to the platform Quantum Vault |
vault_open |
anyone | open a Quantum Vault |
vault_withdraw |
holder of a WOTS signature | withdraw SPL tokens from a vault |
vault_withdraw_sol |
holder of a WOTS signature | withdraw SOL from a vault |
init_config |
admin, once | create the config and the platform Quantum Vault |
update_config |
admin | defaults for future launches, pause new launches |
set_quote_asset |
admin | enable a quote asset, set its defaults |
set_pool_config |
admin | choose the Raydium CPMM fee tier for future launches |
Arguments and accounts for each are in IDL.
What the admin can and cannot do
The admin key is an ordinary Ed25519 key. It can change defaults for future launches, choose the pool fee tier for future launches (only among known Raydium CPMM deployments), enable quote assets, and pause new launches. It cannot move curve reserves, fee balances, pool liquidity or vault funds, change an existing launch, or change the platform vault. There is no instruction that would let it.
Compute
Measured in the program's tests:
| Operation | Compute units |
|---|---|
launch_token with dev buy |
about 127k |
buy |
about 53k |
sell |
about 32k |
seed_pool |
about 177k |
crossing buy + seed_pool in one transaction |
about 230k |
vault_withdraw / vault_withdraw_sol |
390k–690k, about 1M worst case |
Accounts
| Account | Seeds | Holds |
|---|---|---|
Config |
["config"] |
defaults, platform vault, pause flag for new launches |
QuoteAsset |
["quote", mint] |
phantom reserve and launch fee for a quote asset |
Launch |
["launch", mint] |
frozen economics, phase, reserves, fee recipient |
| curve tokens | ["curve", mint] |
unsold supply |
| quote reserve | ["reserve", mint] |
real quote reserve |
| fee account | ["fees", mint] |
accrued fees |
| graduation authority | ["grad", mint] |
signs pool creation; receives the pool creator fee |
| pool | ["pool", mint] |
the Raydium CPMM pool state |
QuantumVault |
["qvault", vault_id] |
kind, vault_id, commitment, seq |
HTTP API
Quubits' web app serves a read-only API backed by its indexer. Every amount is a decimal string of base units; every price is { raw, scale }, meaning raw / 10^scale. When the indexer is unavailable, endpoints return 503 with {"error": "indexer unavailable"}; they never return stale or invented numbers.
| Endpoint | Returns |
|---|---|
GET /api/v1/protocol |
config, quote assets, protocol totals |
GET /api/v1/tokens?sort=&q=&page=&mcapMin=&mcapMax=&volMin=&volMax= |
a page of launches; sort is trending, new, graduated, mcap, oldest or last_trade |
GET /api/v1/tokens/:mint |
one launch |
GET /api/v1/tokens/:mint/trades?before= |
recent trades, newest first |
GET /api/v1/tokens/:mint/candles?interval=&from=&to= |
candles; interval is 1m, 15m, 30m, 1h, 4h, 1d or 1w |
GET /api/v1/ticker |
the scrolling ticker |
GET /api/v1/stats |
platform stats: volume, fees and value locked per quote asset; launches, graduation times, traders, holders, pools, vaults; 30-day and 24-hour series; leaderboards |
GET /api/v1/users/:address |
holdings, P&L, claimable fees, vaults |