How Kernel works
Every mechanic, every fee and every rule, in one place.
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.
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.
| Chain | Solana |
| Platform | pump.fun (create_v2, Token-2022) |
| Supply | 1,000,000,000, fixed; no one can mint more |
| Image | PNG, JPG, WEBP or GIF, up to 5 MB, stored on IPFS |
| Cost | ~0.02 SOL network and account fees, plus your dev buy |
| Ticker | Kept exactly as you type it |
| Fee split | Chosen at launch and permanent |
What fees can do
Pick a preset or set your own split in whole percent. It must add up to 100%.
| PRESET | BURN | LIQUIDITY | REWARDS |
|---|---|---|---|
| Burn | 100% | 0% | 0% |
| Liquidity | 0% | 100% | 0% |
| Rewards | 0% | 0% | 100% |
| Balanced | 33.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.
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.
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.
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.
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.
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:
| THEOREM | WHAT IT GUARANTEES |
|---|---|
split_total | Every lamport of a claim is assigned: nothing lost, nothing invented. |
spend_le_claim | Never spends more than the claim delivered. |
no_liquidity_unless_chosen | No liquidity unless the creator chose it. |
no_rewards_unless_chosen | No rewards unless the creator chose them. |
maxCost_le_budget | Even at full slippage, a buy can't spend more than its budget. |
burnSteps_total | Every token bought is burned; the keeper keeps none. |
liquidityHalves_total | The liquidity share is fully used: half buys, half pairs. |
payouts_le_budget | Holder 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.
1/-2 What the keeper may do with a coin's creator fees.34 Every amount is in lamports (or raw token units) as a natural number, the same integers the keeper5 computes with. `src/features/proofs/spec.ts` mirrors each definition below line for line; the keeper6 uses those functions for every amount and checks the matching theorem's statement before signing.7-/8namespace LeanPad910/-- Basis points in a whole. -/11def BPS : Nat := 100001213/-- What a coin's creator fees do, chosen at launch: basis points for each use. -/14structure Alloc where15 burn : Nat16 liquidity : Nat17 rewards : Nat1819/-- A valid choice adds up to 100%. -/20def Alloc.Valid (a : Alloc) : Prop := a.burn + a.liquidity + a.rewards = BPS2122/-- `bps` basis points of `amt`, never more than `cap`. -/23def share (amt bps cap : Nat) : Nat := min cap (amt * bps / BPS)2425theorem share_le_cap (amt bps cap : Nat) : share amt bps cap ≤ cap :=26 Nat.min_le_left _ _2728/-- One claim, divided. -/29structure Split where30 burn : Nat31 liquidity : Nat32 rewards : Nat3334/-- 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 amt37 let r := share amt a.rewards (amt - l)38 { burn := amt - l - r, liquidity := l, rewards := r }3940/-- 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 := by43 have h1 := share_le_cap amt a.liquidity amt44 have h2 := share_le_cap amt a.rewards (amt - share amt a.liquidity amt)45 simp only [split]46 omega4748/-- 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)5253/-- 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 := by56 simp [split, share, h]5758theorem no_rewards_unless_chosen (a : Alloc) (amt : Nat) (h : a.rewards = 0) :59 (split a amt).rewards = 0 := by60 simp [split, share, h]6162/-! ## Buys -/6364/-- SOL quoted for a curve buy out of `budget`, leaving room for 5% slippage. -/65def quoteFor (budget : Nat) : Nat := budget * 100 / 1056667/-- The most the buy instruction may charge: the quote plus 5%. -/68def maxCost (budget : Nat) : Nat := quoteFor budget + quoteFor budget * 5 / 1006970/-- Even at full slippage, a buy can't spend more than its budget. -/71theorem maxCost_le_budget (budget : Nat) : maxCost budget ≤ budget := by72 simp only [maxCost, quoteFor]73 omega7475/-! ## Burns -/7677/-- 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)7980/-- 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 := by83 simp only [burnSteps]84 omega8586/-! ## Liquidity -/8788/-- 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)9091theorem liquidityHalves_total (budget : Nat) :92 (liquidityHalves budget).1 + (liquidityHalves budget).2 = budget := by93 simp only [liquidityHalves]94 omega9596/-! ## Rewards -/9798/-- Pays each holder `budget * balance / total`, never past what is left of the budget. -/99def payouts (budget total : Nat) : Nat → List Nat → List Nat100 | _, [] => []101 | rem, b :: bs =>102 let p := min rem (budget * b / total)103 p :: payouts budget total (rem - p) bs104105theorem payouts_le (budget total : Nat) :106 ∀ (rem : Nat) (bs : List Nat), (payouts budget total rem bs).sum ≤ rem107 | _, [] => by simp [payouts]108 | rem, b :: bs => by109 have ih := payouts_le budget total (rem - min rem (budget * b / total)) bs110 have hm := Nat.min_le_left rem (budget * b / total)111 simp only [payouts, List.sum_cons]112 omega113114/-- 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 bs118119/-- 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.length122 | _, [] => by simp [payouts]123 | rem, b :: bs => by124 simp only [payouts, List.length_cons]125 rw [payouts_length budget total _ bs]126127end 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.
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.
| COLOR | TRANSACTION |
|---|---|
| ink | Fees claimed from pump.fun |
| grey | Fees unwrapped or routed to the keeper |
| red | Bought back and burned |
| blue | Bought to pair, added to the pool, LP burned |
| green | SOL paid to holders |
Trading fees
Fees are charged by pump.fun on every trade. Kernel adds no fee of its own on top.
| FEE | RATE | GOES TO |
|---|---|---|
| Protocol fee | ~0.95%, varies with market cap and trade size | pump.fun |
| Creator fee | ~0.30% on the curve; PumpSwap's creator rate after graduation | The coin's fee wallet, then your chosen split |
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.
Prices & data
| DATA | SOURCE | REFRESH |
|---|---|---|
| Prices, charts, trades, holders | Birdeye | 5–60 s |
| Curve progress, graduation | Read directly from Solana | ~10 s |
| Claims, burns, deposits, payouts | The keeper's log, each with its transaction | ~10 s |
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.