How ROOKIE works
What ROOKIE is
ROOKIE is a small model that sets prices on Pump.fun coins and lives inside a Solana program. It is not a language or chat model. Its numbers, the brain, sit in a program account anyone can read: one bias and eight weights, nine integers in all. The program computes every probability, takes every bet, reads every result and changes the brain. No server supplies a probability or a result.
What it reads
For each coin the program reads the coin's Pump.fun bonding-curve account. It checks that the account's address derives from the coin's mint (seeds "bonding-curve" + mint), that the Pump.fun program (6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P) owns it, its 8-byte type tag, and that it is at least 206 bytes long. It reads fixed positions only and never calls a Pump.fun instruction.
From that account and the chain's clock it builds eight inputs:
- progress: SOL in the curve as a share of the SOL graduation needs, both derived from the account's own reserves (about 85 SOL on today's curves);
- age: slots since the coin was created, as a share of 9,000 slots (at most 1);
- speed: progress per 9,000 slots of age (at most 2);
- movement: progress now minus progress when the call opened;
- holder-reward coin (1 or 0);
- cashback coin (1 or 0);
- mayhem mode (1 or 0);
- whether the creator differs from the tax-exempt creator (1 or 0).
It cannot see trade counts, holder counts or who holds what.
Coins created before 2026-11-27 carry no creation slot and are refused. Coins paired with anything but SOL are refused. Mayhem-mode coins are refused: their reserves do not follow the curve the program derives graduation from.
The probability
All arithmetic is integer; there are no floating-point numbers anywhere.
- z = bias + sum of (weight x input), each in millionths.
- p = a squashing function built from a fixed table of 33 points between z = -8 and z = +8, joined by straight lines.
- A bet on "graduates" is priced at p, but never below 1%. A bet on "stays" is priced at 1 - p, but never below 5%. These floors only ever lower a payout; there is no ceiling.
The same integer code runs in the program (Rust) and on the Recompute page (TypeScript). Both are tested against one shared file of test vectors; one differing digit fails the build.
The start
The brain started from one number: the average graduation rate, counted by us from mainnet. In a sample of 1,796 SOL-paired, non-mayhem coins older than two hours, read at slot 477,649,724, 48 had graduated: 26,726 per million (2.67%). The bias started at -3,614,162 (the z whose probability is that rate). Every weight started at 0. The model starts from that one number; what it loses while it learns is limited by the daily bound below.
A call
A call is one market on one coin: will it graduate?
- Open: the program checks the coin (rules above), that it is at least 10 minutes old (2,800 slots) and at most 95% of the way to graduation, and that it is not $ROOKIE itself. A betting call also needs at least 3 SOL in the curve and a coin at most 30 minutes old (8,400 slots), so a coin gets one betting call in its life. Cashback coins get no betting calls (school still studies them). It stores a snapshot of the inputs.
- Bets: accepted from the slot after open for 10 minutes, while the coin is at most 95% of the way to graduation. Each bet carries the curve account, and the probability is computed again at that moment. The bet is priced at whichever of that probability and the one stored at open pays the bettor less, so moving the curve inside a transaction never improves a price. The payout multiple is fixed into that bet. A bet whose payout would not exceed its stake is refused.
- Close: in the 2 minutes after the bet window, anyone may record a second snapshot. If nobody does, the lesson uses the open snapshot.
- Deadline: 1 hour after open.
Payouts
For a bet on a side with probability p_side (p for "graduates", 1 - p for "stays"):
multiple = 1 + (1 - cut) x (1 - p_side) / p_side, with cut = 8% of winnings.
A winning bet is paid stake x multiple, so a win always returns more than the stake. A losing stake stays in the bankroll.
Settlement
- Before the deadline, anyone may confirm a call whose curve shows graduated. It settles as "graduated" at once.
- After the deadline, anyone may settle it as "stays". A graduation counts only if it was confirmed by the deadline: the curve account does not record when it completed, so a completion seen only after the deadline settles as "stays".
- A worker sends settlements at the deadline, but anyone can, and anyone can send a winner's claim. The payout always goes to the wallet that placed the bet. A stopped worker never locks funds.
- If, after the deadline, the coin's curve account no longer passes the checks above (closed, changed owner, changed type tag or too short), anyone may void the call: there is no lesson, and every bet claims back exactly what it staked.
- Closing a call or bet account returns its rent to whoever paid it.
The lesson
Inside the settlement transaction the program moves the brain one step toward the result, using the stored snapshot (the bet-close snapshot when it was recorded, else the open one):
- probability = the brain's probability, computed again in that transaction from the stored snapshot;
- error = result (1 or 0) - probability;
- step = 0.5 x 200 / (200 + lessons so far);
- each weight moves by step x error x its input, the bias by step x error, each move capped at 0.25 per lesson.
Only settlement changes the brain. No instruction lets anyone write weights.
Cost on chain
Measured on LiteSVM against the final program build (rookie.so sha256 057a33c85ab6..., commit 18c2148), in four runs of the program's 35-test suite, all passing. Figures are compute units for the whole transaction, including about 150 units for the compute-budget instruction; Solana allows 1,400,000 per transaction.
- Opening a study call: 39,866. Opening a betting call: 46,660 from the worker; 48,008 to 58,260 for a holder registration, which also burns $ROOKIE.
- A bet (probability, payout multiple and every cap computed from the curve account): 40,369 to 49,203; the highest seen in the suite was 63,032.
- Recording the close: 26,989.
- Settlement with the lesson: 38,261; confirming a graduation with the lesson: 38,571.
- Voiding a call: 26,326. A claim: at most 20,292.
The same instruction varied by up to 9,000 units between runs, depending on the addresses involved.
Caps
What one bettor can take from a call must be smaller than what it costs to force the result.
- Graduates side, computed from the curve account in every bet transaction: R = tokens left on the curve; C = cost to buy them all; B = tokens outside the curve; Q = SOL in the curve + C - the migration fee; S = Q x R / (B + R), what selling them all into the pool returns; L = C - S, the least a forced graduation loses. The call's total net payout on "graduates" may not exceed L / 2.
- Stays side: the call's total net payout on "stays" may not exceed 0.95% of the SOL in the curve, read in that bet's transaction: half of the Pump.fun protocol fee (0.95% each way) that buying that much in and selling it back costs, the part of the fee nobody gets back. Making a dead coin look alive costs more than this cap pays.
- Each side of a call: net payout at most 2% of the bankroll.
- One wallet: at most 0.5 SOL staked per call (higher only for wallets that burned $ROOKIE: 500,000 burned -> 1 SOL, 2,500,000 -> 2 SOL, 10,000,000 -> 5 SOL; the call caps above never rise).
- All open calls together: reserved net payouts at most 30% of the bankroll; past it new calls open for study only.
- Daily bound: the program refuses a bet when the loss already taken that UTC day plus the worst case of every open call would exceed 10% of the bankroll at the start of the day (payouts reserved for open calls count as already lost). When the day's room is used, bets that raise the exposure are refused until calls settle; bets that lower it are always taken.
The bankroll
The bankroll is the program's vault account. It always holds every open stake, every reserved payout and every payout owed.
- In: stakes, the seed, SOL anyone sends with fund_bankroll (not returnable; SOL from wallets other than the developer's is counted as donated).
- Out: payouts to winners, and the burn release: when a settlement lifts ROOKIE's cumulative net winnings above their previous high, half of the new excess is set aside in that same transaction for the burn recipient, who uses it to buy $ROOKIE and burn it. The other half stays in the bankroll.
- No instruction withdraws the bankroll to an admin.
School
School calls take no bets. They settle and teach exactly like betting calls.
- The school worker opens 300 study calls a UTC day (allowed 200 to 500), evenly spaced, on Pump.fun SOL-pair coins that are not graduated and not in mayhem mode.
- It takes coins in turn from fifteen groups: five progress bands (0-10%, 10-25%, 25-50%, 50-75%, 75-95%) by three ages (10-30 minutes, 30 minutes-2 hours, 2-12 hours), so the model studies every stage, not only the coins people pick.
- Inside a group one coin is drawn at random, seeded by the latest finalized blockhash, so anyone can redo the draw from public data.
Betting calls
A worker opens a betting call every 5 minutes on a SOL-pair coin aged 10 to 30 minutes and at most 95% of the way to graduation, choosing the one with the most SOL in its curve. Holders of $ROOKIE can register coins too (below).
Holding and burning $ROOKIE
- Holding: a wallet holding at least 1,000,000 $ROOKIE may register coins to open betting calls: 2 a UTC day; 5,000,000 -> 5; 20,000,000 -> 15. Each registration burns 10,000 $ROOKIE, and all holders together register at most 96 calls a UTC day, so moving tokens between wallets does not add free calls. Anyone can bet, watch and recompute without holding.
- Burning: burning $ROOKIE through the program raises that wallet's stake cap per call (tiers above).
Workers
Workers only send transactions anyone can send: opening calls, recording close snapshots, settling, claiming for winners and closing accounts. A worker can set neither a probability nor a result. One exception: study calls are opened by the keeper wallet, and the program does not limit how many it opens; the 300-a-day schedule above is the worker's, not the program's.
Keys and trust
- Program: AZCy9at8viZn11UDgLpbpiaorHDKoTfF7GsWK9K7payM.
- Upgrade authority: G5rEAWdLydiVdkAytuuvmSLRrwRmQDTaFmD63DSdVmY8, the developer's wallet. It can replace the program's code. The same wallet sets parameters only inside ranges fixed in the code, names the keeper and the burn recipient, and can pause new calls or bets (settlement and claims never pause). It can change the keeper and the burn recipient at any time, and the limits inside ranges fixed in the code. The 30-minute open-age window only ever narrows: widening it needs a new program. Only this wallet, as the program's upgrade authority, could set the program up. It cannot write weights, results or the curve program, and cannot withdraw the bankroll.
- No outside security firm has reviewed the program.
The rules as a PDF