§ 05 — Flywheel
Fees repay the credit, then flow to holders for good.
Every swap through the graduation pool pays a 1% fee in the quote asset. One function, splitFees, decides where each atom goes, and it flips phase at exactly zero outstanding credit.
splitFees · tests passingLive in demoOffchain ledgerOn-chain · tests pending
§ 5.1Two phases
Phase A · repaying
credit outstanding > 0
80%
20%
- Credit repayment → Credit Pool 80%
- Platform burn / ops 20%
Phase B · flywheel
credit outstanding = 0
50%
35%
15%
- Holders (quote asset) 50%
- Platform buyback-burn 35%
- Treasury 15%
§ 5.2The formulas
Integer quote atoms, rounding down; rounding dust goes to treasury so the parts always sum to the input.
While credit is outstanding
repay_share = fees × 8000 / 10,000
credit_repay = min(repay_share, outstanding)
platform_ops = fees × 2000 / 10,000
flywheel_base = repay_share − credit_repay // overflow in the crossover batch
credit_repay = min(repay_share, outstanding)
platform_ops = fees × 2000 / 10,000
flywheel_base = repay_share − credit_repay // overflow in the crossover batch
Once outstanding is zero
flywheel_base = fees
holders = flywheel_base × 5000 / 10,000
platform_buyback_burn = flywheel_base × 3500 / 10,000
treasury = fees − credit_repay − platform_ops − holders − platform_buyback_burn
holders = flywheel_base × 5000 / 10,000
platform_buyback_burn = flywheel_base × 3500 / 10,000
treasury = fees − credit_repay − platform_ops − holders − platform_buyback_burn
Worked cases
| Case | Fees | Outstanding | Repay | Ops | Holders | Burn | Treasury | After |
|---|---|---|---|---|---|---|---|---|
| Repaying | 1,000 | 10,000 | 800 | 200 | 0 | 0 | 0 | 9,200 |
| Crossover batch | 1,000 | 300 | 300 | 200 | 250 | 175 | 75 | 0 |
| Flywheel | 1,000 | 0 | 0 | 0 | 500 | 350 | 150 | 0 |
§ 5.3Where each share goes
- Credit repayment
- Back to the Credit Pool vault (
credit_vault), reducingoutstanding. Recycled into the next launch's credit line. - Platform ops (20%) and platform buyback-burn (35%)
- Platform-token burn · plannedBoth are sent in the quote asset to the
platform_opstoken account. Buying and burning a platform token with it happens outside the program and is not implemented yet. - Holders (50%)
- Sent to the launch's
rewards_vaultand accrued per staked token:reward_per_share += holders × 10¹² / total_staked. Holders claim withclaim_rewards. - Treasury (15% + dust)
- The
treasurytoken account set atinitialize_protocol.
§ 5.4The anti-snipe rule
Bots that buy the instant a pool opens extract value from everyone else. Sealed does not stop the buy, it removes the reward:
- Onchain: a buy in the same slot as
graduation_slotcreates anAntiSnipeEntryPDA for that wallet and emitsSniperFlagged. That wallet'sstake,claim_rewardsand staking at claim fail withSniperIneligible. - Offchain: buys executed within 2 s of graduation are flagged (
ANTI_SNIPE_WINDOW_SEC), listed insniperFlagson the account, and earn 0% holder rewards. - The flag is permanent per launch and wallet. It does not apply to other launches.