aidancingcat.xyz

How a bonding curve sets the price of a new memecoin before it hits a DEX

A bonding curve is a mathematical formula encoded in a smart contract. It determines the price of a token based solely on the current supply. There are no buyers and sellers placing orders. No order book exists. The smart contract itself is the counterparty to every trade.

On platforms like Pump.fun, this curve is the only pricing mechanism before a token "graduates" to a decentralized exchange (DEX) such as Raydium. The most common curve used is a fixed-product formula, similar to the one that powers automated market makers. But there is a critical difference: on a bonding curve, the price changes continuously as tokens are minted or burned against the contract.

The relationship is straightforward. As more tokens are minted, the supply increases and the price rises along the curve. As tokens are burned, the supply decreases and the price falls. The price at any given moment is a function of the total supply. No external market data feeds in. No human judgment adjusts it.

Take Pump.fun's specific curve as an example. It uses a constant product formula: the product of the token supply and the virtual SOL reserve is held constant. When you buy, you deposit SOL into the contract, which mints new tokens based on the ratio of your SOL to the current reserve. The price per token increases with each purchase because the reserve grows relative to supply.

The curve has a predetermined endpoint. On Pump.fun, once the market cap of the token reaches approximately $69,000 (in SOL terms at current prices), the curve stops. The smart contract then automatically creates a liquidity pool on Raydium. This is called graduation. Before graduation, all trading happens on the curve. After graduation, trading moves to the DEX liquidity pool. The two models are fundamentally different.

On the bonding curve, the price is a deterministic output of supply. The contract always has liquidity because it mints tokens on demand. There is no slippage beyond what the curve itself defines. A buyer knows the exact price before they confirm the transaction. The price path is predictable - a monotonic increase as supply grows, and a monotonic decrease as supply shrinks.

On a DEX liquidity pool like Raydium, the price is set by a pool of locked tokens and SOL. Traders swap against that pool, not against a minting contract. The price moves based on the ratio of assets in the pool. Large trades shift the ratio and cause slippage. Unlike the bonding curve, the DEX pool has finite liquidity. If someone drains the SOL side, the token price crashes toward zero. The curve prevented that by minting new tokens.

The bonding curve is not a market. It is a pricing function. No matching of buy and sell orders occurs. No spread exists between bid and ask. The contract buys and sells at the same calculated price, minus a fee. On Pump.fun, the fee is typically 1% per transaction, which goes to the platform.

This design has consequences. Early buyers get lower prices. Late buyers pay more. Sellers always receive the current curve price, but selling reduces the supply, which lowers the price for everyone still holding. The curve penalizes selling just as it rewards buying.

Graduation changes everything. Once the liquidity pool is created, the token trades in an open market. The price can diverge from the curve's final value. It can go higher or lower. The curve no longer applies. The token is now subject to the same forces as any other SPL token on a DEX: arbitrage, liquidity depth, and market sentiment.

The bonding curve bootstraps liquidity and price discovery for a token with no history. It ensures early participants can buy and sell without needing a market maker. It also guarantees the token will eventually have a DEX pool with real liquidity, funded by the SOL collected during the curve phase.

But the curve is not a guarantee of fair distribution. The formula is public. Bots can front-run purchases. The price rises with every buy, so the first transaction sets the lowest possible price. On Pump.fun, the creator buys the first token themselves, often at the very start of the curve.

Understanding the curve helps explain why memecoins launched this way behave as they do. The price action on the curve is mechanical. It follows math, not sentiment. That changes after graduation. The DEX pool introduces human psychology, market depth, and real volatility.

A bonding curve is a tool, not a market. It is a formula that defines a relationship between supply and price. Before any DEX trade happens, that formula is the only price.

Not financial advice. aidancingcat.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to memecoins