Introduction
A bonding curve is a mechanism for gradually selling tokens according to a predefined formula.
- When a new buyer sends $MST to the contract, they receive a certain amount of $FUN as determined by the curve using the formula ($x×y=k)$ where $x$ is the
reserveMST and $y$ is the tokenInPool (100% of the supply will go to the pool before any buying).
- As more people purchase tokens, the price for each FunToken typically increases.
Virtual Liquidity: Starting with a Non-Zero Market Cap
At token launch, we don’t want to have a zero market cap. This is where initialReserveMST comes in:
- Admin sets up a specific amount of virtual $MST (for example, 1000 $MST) as virtual liquidity inside the bonding curve contract.
- This initial $MST is worth a given amount in USD (for example, 1000 $MST might be assumed to be $1000, if 1 $MST = $1)
- This configuration ensures that every newly launched token begins at the same initial market cap of 1000$.
As a result, even before any real purchases happen, the token already has a base market cap. This helps provide credibility and a stable starting price for early buyers, rather than launching from zero.
Market Cap Evolution
When a user buys $FUN, tokenInPool decreases and currentReserveMST increases. Thus, to calculate the current market cap of a token, we have this formula:
$Mcap=(currentReservePUMP×pricePUMP)×(tokenSupply/tokenInPool)$
- $currentReservePUMP$: The amount of $MST in the bonding curve after any buy/sell operations of the token
- $pricePUMP$: current $USD price of the $MST token
- $tokenInPool:$ The number of tokens remaining in the bonding curve
Price Evolution
The bonding curve mechanism ensures that as users buy $FUN tokens, the price per token increases.