Bonding Curve
DEX & liquidity
A bonding curve is a price formula that quotes a token against a fixed pool of virtual reserves. Pump.fun uses one to price every new token from launch until graduation. Buyers push price up the curve, sellers push it down, and the curve pays in real SOL. When the curve fills, the token migrates to a full AMM pool and the curve is closed.
Detailed explanation
Pump.fun's curve is a constant-product formula seeded with virtual reserves so the first buyer does not pay an infinite price. The implementation lives in the program at 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P. Each token gets a BondingCurve account that tracks the real SOL reserves, real token reserves, virtual SOL reserves, virtual token reserves, and a complete flag that flips true when the curve graduates.
The buy and sell instructions read those reserves, apply the constant product math with the platform fee, and either mint tokens out of the curve's associated token account or pull them back in. Because the curve is fully on chain and deterministic, anyone can simulate a quote without an RPC round trip if they have the latest account state.
The graduation threshold on Pump.fun is roughly 85 SOL of real reserves. When that hits, an external authority calls the migrate path and seeds a Raydium or PumpSwap pool with the remaining reserves. The token is then tradable on a normal AMM and the bonding curve is permanently disabled.
One opinion: most "Pump.fun trading bot" tutorials copy a stale curve formula and ignore that the virtual reserves change after launches with different presets. Read the curve account, do not hardcode the seed values.
When you'll see this
Bonding curves are the core data structure on Pump.fun. The instructions that touch them include create, buy, sell, and the migration path. Other Solana launchpads, including LetsBonk and Moonshot, run their own curve programs with similar shapes but different parameters.
On a Geyser stream, BondingCurve accounts update every time someone buys or sells. The account write is a clean signal you can use to track price without parsing the inner instructions.
How NoLimitNodes uses this
Our Enhanced Streams include parsed Pump.fun events with bonding-curve state attached to every buy and sell. If you are building a sniper or a price tracker, see our Pump.fun historical data for backtest-ready bonding curve snapshots.
Related terms
- LP Token · A fungible SPL token that represents your share of an AMM pool, mintable on deposit and burnable on withdraw.
- Slippage · The gap between the price you quoted and the price you actually got, set as a tolerance on every swap instruction.
- CLMM · Concentrated Liquidity Market Maker. LPs choose a price range, and capital only earns fees inside that range.
- DLMM · Dynamic Liquidity Market Maker. Meteora’s discrete-bin model with zero slippage inside the active bin.
- Whirlpool · The Orca CLMM pool account that stores the active sqrt-price, current liquidity, fee tier, and tick spacing.