Bonding Curves

Math behind the curve

How it works

similiar to the Liquidity Book on Magicsea, our curves are setup using bins to store token amounts and prices.

As more IOTA is exchanged for a token, the bin will fill up until their is no more tokens in that bin, then it will go to the next non empty bin.

Token prices per bin goes up 20% incrementally. This is a step-wise approach to the bonding curve problem. Compare that to moonshot or pumpdotfun whose bonding curves follow the a distinct curve.

This allows Catapus to cater to multiple pricing strategies.

Mathematical Formulas

Price Calculation for Each Bin:

Calculate the price for the bin using the formula:

price=basePrice×(100+(i×20​))/100price=basePrice×(100+(i×20​))/100

Calculate Last Non-Zero Bin Price

Determine the price for the last non-zero bin using:

lastNonZeroPrice=basePrice×(1+(length−1)×20​100)lastNonZeroPrice=basePrice×(1+100(length−1)×20​​)

Market Cap Calculation

This is the market cap at the last bin. This is the value of the token when migrated to Magicsea.

requiredMarketCap=totalDistribution×lastNonZeroPricerequiredMarketCap=totalDistribution×lastNonZeroPrice

Fraction Validation

This is the fraction of the total supply that we want added to the bins.

cumulativeValue=∑i=un−1​lists[i]×priceicumulativeValue=i=u∑n−1​​lists[i]×pricei​fraction=10,000×requiredMarketCapcumulativeValue+requiredMarketCapfraction=10,000×cumulativeValue+requiredMarketCaprequiredMarketCap​

Last updated