§ 01 — How it works
One launch, from the first commit to the flywheel.
A launch moves through six statuses. This page walks through each one: who acts, what money moves, and which numbers are fixed by the protocol.
Live in demoOffchain ledger · in development
§ 1.1Two execution modes, one rulebook
| Offchain custodial (default) | Onchain (roadmap) | |
|---|---|---|
| Who runs the auction | Railway backend, Postgres double-entry ledger | Anchor program sealed_launchpad |
| Where your money is | Company wallet; you hold an internal balance (Custody) | Program-owned PDAs; you keep custody |
| How you sign in / act | SIWS signature → bearer token → API calls | Wallet signs each transaction |
| Anti-snipe rule | Buys within 2s of graduation are flagged | Buys in the graduation slot are flagged |
| Math | computeClearing, settleBid, splitFees from @sealed/shared | math.rs, a line-for-line port |
| Status | In development | On-chain · tests pending |
§ 1.2Statuses
01
commit
bids sealed, collateral locked
02
reveal
preimages opened
03
live
vault drips, fees repay credit
04
flywheel
credit repaid, holders paid
| Status | Meaning | Next |
|---|---|---|
commit | Commit window open. Bidders lock collateral and submit a 32-byte commitment. | reveal at commitEndTs |
reveal | Reveal window open. Anyone holding a preimage can reveal it (the bidder or the auto-reveal relayer). | clearing at revealEndTs |
clearing | Reveal closed; waiting for clear and graduation. | live, or failed |
live | Graduated. The pool trades, the buyback vault drips, fees repay the credit line. | flywheel when outstanding = 0 |
flywheel | Credit 100% repaid. Fees split 50/35/15 forever. | terminal |
failed | No revealed bids (or nothing raised). Every deposit is refunded in full. | terminal |
§ 1.3Launch setup
The creator picks a quote asset — SOL, USDC, NVDAx, TSLAx, TTWOx, AAPLx, SPYx — and the auction parameters. Launched tokens always use 6 decimals and prices are quoted in quote-asset per whole token.
| Parameter | Bounds | Enforced by |
|---|---|---|
| Creator allocation | 0 – 2% of supply | schema (400) + program (CreatorAllocationTooHigh) |
| Auction supply | 20% – 60% | schema + program (InvalidAuctionSupply) |
| Commit window | 15 min – 30 min mainnet · ≥ 2 min devnet | program (InvalidDuration); the API schema allows 2–30 min on every network |
| Reveal window | 60 – 600 s API · 60 – 1,800 s program · default 120 s | schema + program |
| Drip interval | 120 – 300 s · default 180 s · 48 drips | program (InvalidDripInterval) |
| Clearing cap | ≥ targetRaise (API) and ≥ floor × tokensForSale (program) | API superRefine + program (InvalidParams) |
Supply split, worked
With the default supply of 1,000,000,000 tokens, a 1% creator allocation and a 40% auction:
10M
to the creator at creation
400M
sold in the sealed auction
590M
seeded into the pool (+ any unsold)
0
LP tokens minted — liquidity is locked
§ 1.4A launch, step by step
- Create. Offchain:
POST /api/launchesrecords the launch. Onchain: the creator signscreate_launch, which mints the creator allocation and opens escrow, stake and rewards accounts. - Commit. A bidder picks a max price on the tick grid and a bid amount, draws a 32-byte salt and submits
keccak256(bidder ‖ max_price ‖ bid_amount ‖ salt)with a deposit ≥ bid amount. Only bid count, escrowed wallets and total escrowed are public. See Sealed auction. - Reveal. The preimage is submitted and checked against the hash; the bid amount joins the tick histogram. Opting into auto-reveal seals the preimage to the relayer, which reveals at window open.
- Clear. One uniform price is computed from the histogram. Winners above it fill fully, the marginal tick is pro-rated, everything else is refunded. Unrevealed bids lose 1% of their deposit.
- Graduate. The raise and pool allocation seed a constant-product pool. The Credit Pool advances the credit line into the buyback vault and the first drip is scheduled one drip interval later. See Buyback vault.
- Trade and repay. Every swap pays a 1% fee in the quote asset. Fees repay credit 80/20 until outstanding reaches exactly zero, then split 50/35/15. See Flywheel.
§ 1.5Who does what
| Action | Offchain (default) | Onchain (roadmap) |
|---|---|---|
| Create launch | creator via API | creator signs create_launch |
| Commit bid | POST /api/trade/commit (locks internal balance) | bidder signs commit_bid (SPL transfer to escrow) |
| Reveal | POST /api/trade/reveal or auto-reveal | anyone with the preimage: reveal_bid |
| Clear, graduate | backend scheduler | permissionless crank: clear_auction, graduate_and_open_credit |
| Drips, fee split | backend scheduler on the ledger | permissionless crank: execute_buyback_drip, distribute_fees |
| Claim, stake, rewards | POST /api/trade/claim · stake · rewards | claim_or_refund, stake, claim_rewards |
| Withdraw | POST /api/account/withdrawals → company wallet pays out | not needed: funds are already in your wallet |