§ 12 — Security
What you trust, what is tested, what is not done.
An honest account of the trust model in each execution mode, the invariants the test suites check, and the gaps we know about.
No auditNo mainnet deployment
§ 12.1Trust model
Offchain custodial (default)
| Party | Can | Cannot |
|---|---|---|
| Operator (company wallet key) | move reserves; pause, delay or reject withdrawals; read every bid after submission | forge your SIWS signature; hide reserves from proof of reserves (they are on-chain) |
| Admin token holder | approve or reject queued withdrawals above $2500 | send funds without the wallet key |
| Other users | see aggregate auction counters | see your bid before reveal (the API never returns it) |
| Chain observers | see deposits to and withdrawals from the company wallet | see bids, fills or internal trades |
Onchain (roadmap)
| Party | Can | Cannot |
|---|---|---|
| Admin | initialize the protocol once (treasury, platform ops, keeper, mainnet flag, max credit) | withdraw the buyback vault, escrow or pool — no such instruction exists |
| Auto-reveal relayer | learn your bid early; withhold your reveal (you can still reveal yourself) | change your bid (keccak binds it) or move funds (it only pays fees) |
| Keeper / any cranker | run a drip or fee distribution that is already due | run drips early, change sizes, or redirect funds |
| Creator | receive at most 2% of supply | mint more (mint authority is a PDA) or touch the raise |
§ 12.2Invariants tested
- Clearing
- Off-chain · tests passingEvery winner pays one uniform price ≤ their max; Σspent ≤ cap; Σtokens ≤ supply for sale; refund + spent = deposit; no bid below P wins; adding a bid never lowers P; order independence.
- Fees
- Off-chain · tests passingThe split sums exactly to the input; repayment never exceeds outstanding; the flip happens at exactly 0 with crossover overflow to the flywheel; drips drain the vault to exactly 0.
- Commitment
- Off-chain · tests passing80-byte layout; distinct salts give distinct commitments; changing any field changes the hash.
- Schema and demo world
- Off-chain · tests passingCreator allocation > 200 bps rejected; only legal status transitions; vault ≥ 0; repaidPct within 0–100.
- API and e2e
- Off-chain · tests passingAPI unit tests 26/26, defi 13/13; e2e checks that auctions expose no per-bid fields and the 2% cap returns 400.
- Program
- On-chain · tests pendingLifecycle suite (commit-reveal, clearing, refunds, cap, vault guard, flywheel flip, sniper exclusion) plus 14 math.rs unit tests — written, not yet run here.
- Custodial ledger
- In developmentDouble-entry balance (Σ postings = 0), reserves ≥ liabilities, withdrawal limits — to be covered by the offchain workstream.
Reproduce a failing property test with INVARIANT_SEED=<seed>; soak with INVARIANT_RUNS=5000.
§ 12.3Known limitations
- Deposit size leaks. Onchain the escrow transfer is public; pad deposits. Offchain, deposits to the company wallet are public.
- Salts are the secret. Lose the salt and miss the window and 1% of the deposit is slashed.
- Relayer keys. Without
RELAYER_BOX_SEEDthe API uses ephemeral keys and queued reveals do not survive a restart. - Onchain keeper wiring.
buybackKeeper.tspasseskeeperinstead of the IDL'scrankerand omits accounts thatexecute_buyback_dripanddistribute_feesneed. - Holder rewards need staking. With nothing staked, the holder share of a distribution goes to treasury.
- Platform-token burn is off-chain and unbuilt. The 20% ops and 35% buyback-burn shares land as quote in the platform ops account.
- Anti-snipe binds wallets, not tokens. A flagged buyer can move tokens to a fresh wallet.
- Network bounds differ. The API schema accepts a 2-minute commit window on any network; only the program enforces 15 minutes on mainnet.
- Non-demo launch creation.
POST /api/launchesreturns 501 with create_launch args and omitsdrip_interval_sec/drip_count, so clients must add them. - Withdrawal limits use demo prices from the quote-asset registry for USD conversion.
- Demo mode is not secure mode.
demo-bidand in-memory launch creation are unauthenticated and exist only withDEMO_MODE=true.
§ 12.4Roadmap
- Custodial backend
- In developmentLedger engine, SIWS, deposit watcher, payouts, proof of reserves, admin queue.
- Custody hardening
- PlannedMultisig or MPC for the company wallet, hot/cold split, independent reserve attestations, ledger export.
- Program to devnet
- PlannedRun the anchor suite, deploy with deploy-devnet.sh, fix keeper wiring, run the indexer against it.
- Onchain mode
- PlannedNon-custodial execution with the Anchor program as the source of truth.
- Private deposits
- PlannedPhases A (bucketed), B (ring-funded, attested), C (non-custodial ring CPI). See Privacy.
- External audit and mainnet
- PlannedNot before the above. Nothing on this site claims otherwise.