Bonding Curve & Pricing
Last updated
Last updated
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)
Parameter B (PB)
Using the above parameters, we can calculate the eggshell price at current supply (S) as below: