docs

How Kernel works

Every mechanic, every fee and every rule, in one place.

01

Overview

Kernel is a launchpad for pump.fun coins. Every pump.fun coin earns a creator fee on each trade. When you launch here you choose what that fee does: buy back and burn the coin, deepen its liquidity, reward its holders, or a split of the three.

The rules the fees follow are written in Lean 4, a programming language with a built-in proof checker, as theorems that hold for every possible amount. A keeper claims each coin's fees automatically, and before it signs any transaction it checks that transaction's amounts against those same rules. A transaction that would break one is never sent.

02

Launching a coin

Go to Launch, connect a Solana wallet, add an image, name, ticker and optional links, choose what the fees do, and optionally add a dev buy: SOL you spend buying your own coin in the same transaction that creates it.

ChainSolana
Platformpump.fun (create_v2, Token-2022)
Supply1,000,000,000, fixed; no one can mint more
ImagePNG, JPG, WEBP or GIF, up to 5 MB, stored on IPFS
Cost~0.02 SOL network and account fees, plus your dev buy
TickerKept exactly as you type it
Fee splitChosen at launch and permanent
03

What fees can do

Pick a preset or set your own split in whole percent. It must add up to 100%.

PRESETBURNLIQUIDITYREWARDS
Burn100%0%0%
Liquidity0%100%0%
Rewards0%0%100%
Balanced33.34%33.33%33.33%

Each claim is divided exactly: liquidity and rewards take their share rounded down to the lamport, and burn takes the rest, so not a lamport is lost or invented (split_total). A use you didn't choose always gets zero. A share smaller than 0.0004 SOL is too small to swap and waits for the next claim.

04

Buy back & burn

The burn share buys the coin and destroys what it bought, lowering the supply for good.

  • On the bonding curve, the buy and the burn are a single transaction. pump.fun's buy takes an exact token amount with a SOL cap, so the burn amount is known before it's sent. The tokens never sit in any wallet.
  • After graduation, the buy goes through PumpSwap via Jupiter. The route's guaranteed minimum output is burned in the same transaction, and anything that arrived above that minimum is burned right after.
  • The SOL cap leaves room for 5% slippage and is sized so even a full-slippage buy stays within its share.
05

Deeper liquidity

The liquidity share goes into the coin's PumpSwap pool: half buys the coin, the other half is paired with it as SOL. The pool mints LP tokens for the deposit, and they are burned in the same transaction, so that liquidity can never be withdrawn by anyone.

There's no pool before graduation. Until then the liquidity share is kept in the coin's own fee wallet, visible on Solscan, and it goes into the pool as soon as the coin graduates. (A wallet holding SOL must keep at least Solana's rent minimum, ~0.00089 SOL. While the reserve is smaller than that, the share is used for buyback & burn instead.)

Coin tokens bought for the pool but not needed by the deposit are burned.

06

Holder rewards

The rewards share is paid in SOL to the coin's top 50 holder wallets, in proportion to how much each holds.

  • Only personal wallets are paid: pools, the bonding curve and other program accounts are skipped, as is the coin's fee wallet.
  • Payouts under 0.0001 SOL are skipped, and an empty wallet is only paid if the amount covers Solana's rent minimum.
  • Each payout is capped by what's left of the share, so together they can never exceed it (payouts_le_budget). Anything skipped stays unspent.
07

Fee claims

Every minute the keeper checks each coin's creator fees: those already in pump.fun's creator vault plus those still waiting on the coin's bonding curve or pool. Once a coin has more than 0.002 SOL waiting, it claims them, then splits the claim as above. Every claim is logged with its transaction.

Each coin has its own fee wallet, set as the coin's creator at launch, so its fees never mix with another coin's. Network fees and account rent are paid by the platform, never taken from the coin's fees.

08

The proofs (Lean 4)

Lean 4 is a programming language and proof assistant: you write definitions, state theorems about them, and Lean's small kernel checks every step of the proof. If a theorem were false for even one input, the proof wouldn't check. It's the approach behind efforts like formally verified Solana programs: don't trust, verify.

These are the rules Kernel's fees follow, proven for every possible amount:

THEOREMWHAT IT GUARANTEES
split_totalEvery lamport of a claim is assigned: nothing lost, nothing invented.
spend_le_claimNever spends more than the claim delivered.
no_liquidity_unless_chosenNo liquidity unless the creator chose it.
no_rewards_unless_chosenNo rewards unless the creator chose them.
maxCost_le_budgetEven at full slippage, a buy can't spend more than its budget.
burnSteps_totalEvery token bought is burned; the keeper keeps none.
liquidityHalves_totalThe liquidity share is fully used: half buys, half pairs.
payouts_le_budgetHolder payouts never add up to more than the rewards share.

The keeper computes every amount with the same functions, mirrored line for line from this file, and checks each rule's statement on the real numbers before signing. A transaction that fails a check is refused and never reaches the chain.

lean/LeanPad/Fees.leanLean 4
1/-
2 What the keeper may do with a coin's creator fees.
3
4 Every amount is in lamports (or raw token units) as a natural number, the same integers the keeper
5 computes with. `src/features/proofs/spec.ts` mirrors each definition below line for line; the keeper
6 uses those functions for every amount and checks the matching theorem's statement before signing.
7-/
8namespace LeanPad
9
10/-- Basis points in a whole. -/
11def BPS : Nat := 10000
12
13/-- What a coin's creator fees do, chosen at launch: basis points for each use. -/
14structure Alloc where
15 burn : Nat
16 liquidity : Nat
17 rewards : Nat
18
19/-- A valid choice adds up to 100%. -/
20def Alloc.Valid (a : Alloc) : Prop := a.burn + a.liquidity + a.rewards = BPS
21
22/-- `bps` basis points of `amt`, never more than `cap`. -/
23def share (amt bps cap : Nat) : Nat := min cap (amt * bps / BPS)
24
25theorem share_le_cap (amt bps cap : Nat) : share amt bps cap ≤ cap :=
26 Nat.min_le_left _ _
27
28/-- One claim, divided. -/
29structure Split where
30 burn : Nat
31 liquidity : Nat
32 rewards : Nat
33
34/-- Liquidity and rewards take their shares (rounded down); burn takes the rest, including rounding dust. -/
35def split (a : Alloc) (amt : Nat) : Split :=
36 let l := share amt a.liquidity amt
37 let r := share amt a.rewards (amt - l)
38 { burn := amt - l - r, liquidity := l, rewards := r }
39
40/-- Every lamport of a claim is assigned: nothing is lost, nothing is invented. -/
41theorem split_total (a : Alloc) (amt : Nat) :
42 (split a amt).burn + (split a amt).liquidity + (split a amt).rewards = amt := by
43 have h1 := share_le_cap amt a.liquidity amt
44 have h2 := share_le_cap amt a.rewards (amt - share amt a.liquidity amt)
45 simp only [split]
46 omega
47
48/-- The keeper never spends more than the claim delivered. -/
49theorem spend_le_claim (a : Alloc) (amt : Nat) :
50 (split a amt).burn + (split a amt).liquidity + (split a amt).rewards ≤ amt :=
51 Nat.le_of_eq (split_total a amt)
52
53/-- A use the creator didn't choose gets nothing. -/
54theorem no_liquidity_unless_chosen (a : Alloc) (amt : Nat) (h : a.liquidity = 0) :
55 (split a amt).liquidity = 0 := by
56 simp [split, share, h]
57
58theorem no_rewards_unless_chosen (a : Alloc) (amt : Nat) (h : a.rewards = 0) :
59 (split a amt).rewards = 0 := by
60 simp [split, share, h]
61
62/-! ## Buys -/
63
64/-- SOL quoted for a curve buy out of `budget`, leaving room for 5% slippage. -/
65def quoteFor (budget : Nat) : Nat := budget * 100 / 105
66
67/-- The most the buy instruction may charge: the quote plus 5%. -/
68def maxCost (budget : Nat) : Nat := quoteFor budget + quoteFor budget * 5 / 100
69
70/-- Even at full slippage, a buy can't spend more than its budget. -/
71theorem maxCost_le_budget (budget : Nat) : maxCost budget ≤ budget := by
72 simp only [maxCost, quoteFor]
73 omega
74
75/-! ## Burns -/
76
77/-- A swap burns its guaranteed minimum in the same transaction, and whatever came on top right after. -/
78def burnSteps (minOut out : Nat) : Nat × Nat := (minOut, out - minOut)
79
80/-- Together the two burns destroy exactly what was bought: the keeper keeps none of it. -/
81theorem burnSteps_total (minOut out : Nat) (h : minOut ≤ out) :
82 (burnSteps minOut out).1 + (burnSteps minOut out).2 = out := by
83 simp only [burnSteps]
84 omega
85
86/-! ## Liquidity -/
87
88/-- Half the liquidity share buys the coin, the other half is paired with it in the pool. -/
89def liquidityHalves (budget : Nat) : Nat × Nat := (budget / 2, budget - budget / 2)
90
91theorem liquidityHalves_total (budget : Nat) :
92 (liquidityHalves budget).1 + (liquidityHalves budget).2 = budget := by
93 simp only [liquidityHalves]
94 omega
95
96/-! ## Rewards -/
97
98/-- Pays each holder `budget * balance / total`, never past what is left of the budget. -/
99def payouts (budget total : Nat) : Nat → List Nat → List Nat
100 | _, [] => []
101 | rem, b :: bs =>
102 let p := min rem (budget * b / total)
103 p :: payouts budget total (rem - p) bs
104
105theorem payouts_le (budget total : Nat) :
106 ∀ (rem : Nat) (bs : List Nat), (payouts budget total rem bs).sum ≤ rem
107 | _, [] => by simp [payouts]
108 | rem, b :: bs => by
109 have ih := payouts_le budget total (rem - min rem (budget * b / total)) bs
110 have hm := Nat.min_le_left rem (budget * b / total)
111 simp only [payouts, List.sum_cons]
112 omega
113
114/-- Holder payouts never add up to more than the rewards share. -/
115theorem payouts_le_budget (budget total : Nat) (bs : List Nat) :
116 (payouts budget total budget bs).sum ≤ budget :=
117 payouts_le budget total budget bs
118
119/-- One payout per holder, in order. -/
120theorem payouts_length (budget total : Nat) :
121 ∀ (rem : Nat) (bs : List Nat), (payouts budget total rem bs).length = bs.length
122 | _, [] => by simp [payouts]
123 | rem, b :: bs => by
124 simp only [payouts, List.length_cons]
125 rw [payouts_length budget total _ bs]
126
127end LeanPad

What the proofs cover: the arithmetic of how fees are divided and spent. What they don't: pump.fun's and PumpSwap's own programs, Jupiter's routing, or Solana itself. Those are trusted, as with any launchpad.

09

Proof matrix

Each coin page has a proof matrix: one square per transaction the keeper sent for that coin, colored by what it did. Hover or tap a square to see the amounts, the rules it was checked against, the compute units it used, and a link to the transaction on Solscan.

COLORTRANSACTION
inkFees claimed from pump.fun
greyFees unwrapped or routed to the keeper
redBought back and burned
blueBought to pair, added to the pool, LP burned
greenSOL paid to holders
10

Trading fees

Fees are charged by pump.fun on every trade. Kernel adds no fee of its own on top.

FEERATEGOES TO
Protocol fee~0.95%, varies with market cap and trade sizepump.fun
Creator fee~0.30% on the curve; PumpSwap's creator rate after graduationThe coin's fee wallet, then your chosen split
11

Bonding curve & graduation

Every coin starts on a pump.fun bonding curve: the price rises as people buy and falls as they sell, with no liquidity needed up front. Progress shows how much of the curve has been bought.

At 100% the coin graduates: its liquidity moves to a PumpSwap pool and trading continues there.

12

Prices & data

DATASOURCEREFRESH
Prices, charts, trades, holdersBirdeye5–60 s
Curve progress, graduationRead directly from Solana~10 s
Claims, burns, deposits, payoutsThe keeper's log, each with its transaction~10 s
13

Limits & risks

  • Coins launched here are memecoins. They are highly volatile and can go to zero. Do your own research.
  • Proven fee rules don't make a coin a good investment; they only guarantee what its fees do.
  • pump.fun, PumpSwap, Jupiter and Solana are third-party systems and can fail or change.
  • Holder rewards follow holder data at payout time. A wallet that sells before a payout isn't paid.