Whales.Meme
  • ABOUT US
    • โญIntroducing Whales.Meme
    • ๐Ÿ”นHow it works
      • ๐ŸŸขCreate a memecoin
      • ๐Ÿ›๏ธBuy/Sell Eggshells
    • ๐ŸงชTechnical Architecture
      • โš™๏ธCurrent Presets
      • ๐Ÿ“ˆBonding Curve & Pricing
      • ๐Ÿ’ฆLiquidity Initiation (TGE)
    • ๐ŸฃThe Chicken Bible
    • ๐Ÿ’ฐPlatform fee
  • OFFICIAL LINKS
    • ๐Ÿ‘พSupport ticket
    • ๐ŸฃTwitter
    • ๐ŸŒŽWebsite
Powered by GitBook
On this page
  1. ABOUT US
  2. Technical Architecture

Bonding Curve & Pricing

PreviousCurrent PresetsNextLiquidity Initiation (TGE)

Last updated 1 year ago

Whales Meme uses a bonding curve to determine eggshell prices. A bonding curve is a mathematical formula that governs how the price of an eggshell changes as more eggshells are bought or sold.

In place of a fixed rate, the cost for the subsequent eggshells of a pool is determined via a quadratic bonding curve rooted in the pool's current eggshell count. The price of each eggshell depends only on the number of eggshells already out there. When there are more eggshells, the price of each eggshell in SOL goes higher.

To actually calculate the eggshell price at any given point on the bonding curve, we defined 2 parameters A and B as below:

Parameter A (PA)

PA = (TS-1)*(TS-1)/(TP-IP)

Parameter B (PB)

PB = PA*IP

Using the above parameters, we can calculate the eggshell price at current supply (S) as below:

Price = (S*(S+1)*(2*S+1)/6 - (S-1)*S*(2*S-1)/6 + PB)/PA
๐Ÿงช
๐Ÿ“ˆ