Home / Showcases / Launchpad curve

Launchpad · Bonding curve

How does a launchpad price your buy?

You press Buy with 1 SOL and get a number of tokens. Where does that number come from, why does the next buyer get fewer, and when does the coin leave the curve? One multiplication answers all three.

  1. 01

    Watch the Buy

    Capture what the page builds when you press it.

  2. 02

    Read the curve

    Two reserves on the coin's curve account, and one rule between them.

  3. 03

    Check it live

    The rule must hold on every real trade.

Ask your agent

Your coding agent

›Use REP with my Chrome on debugging port 9222. I will press Buy on a pump.fun coin once. Show me the transaction the page builds, which accounts it reads, and the rule that turns my SOL into tokens. Then check the rule against real trades.

REP captures the request the page sends and the script that builds the transaction; the coin's curve account holds two numbers, its virtual SOL and virtual token reserves. The rest is checking what links them.

The rule

the bonding curve, rebuilt
k = 30 × 1,073,000,000                // virtual SOL × virtual tokens at launch
price      = vSol / vTokens                // SOL per token
tokens out = vTokens − k / (vSol + SOL in) // the product stays k
you pay    = SOL in × (1 + fee)            // the fee goes beside the curve

A new coin starts with 30 virtual SOL against 1,073,000,000 virtual tokens. Of the 1 billion real tokens, 793,100,000 sit on the curve (the other 279,900,000 of the virtual amount never exist). Each buy adds SOL and takes tokens so that the product stays k, which is why every buy moves the price up for the next one. When the last real token on the curve is bought, about 85 SOL has gone in and the coin moves to its trading pool.

Checked on live trades

We took 20 seconds of live launchpad trades from our own feed on 2 December 2026 (11:32 UTC) and kept the plain ones: SOL-quoted coins on the standard curve, nothing else.

283trades on 39 coins kept the product within 0.00001 % of 30 × 1,073,000,000
166of them were buys; tokens out matched the rule within 1 %
147of those buys paid exactly 1.25 % on top of the SOL that went into the curve

The fee is not fixed for good: the same feed showed rates of 1 %, 1.25 %, 1.45 % and 1.95 % across coins and pools that minute, which is why your agent should read the fee for the coin in front of it, not assume one.

Price your own buy

You pay (with the 1.25 % fee)—
Tokens you get—
Share of the 1B supply—
Price before → after—
Market cap before → after—
SOL left until the curve completes—

Prices in SOL; market cap = price × 1,000,000,000 tokens. A demo of the formula, not a quote for any coin.

Why it matters

Once the rule is yours, a lot follows from arithmetic: what a 2 SOL first buy is worth, how much SOL a coin needs to complete its curve, what market cap a given buy moves it to, and whether a bot's numbers add up. The same method works on any launchpad: watch one buy, read the accounts it touches, write the rule, check it against real trades.