🧮Mechanism

🪄 The Bonding Curve (Exponential)

The bonding curve mechanism used in KaiaFun initially follows an Exponential model. The equation for this curve is:

P(x)=P0ekxP(x) = P_0 \cdot e^{k \cdot x}

Where:

  • P(x)P(x) is the price of the token at a given point

  • P0P_0 is the initial price

  • kk is a constant that determines the steepness of the curve

  • xx is the percentage of tokens sold (ranging from 0 to 1)

The value of kk can be derived from the initial and target prices:

k=ln(PtargetP0)k = \ln(\frac{P_{\text{target}}}{P_0})

💸 Valuation

Initial Price

The optimal initial token price is 0.0000183 KAIA per token.

PTokeninitial/KAIA=0.0000183 KAIAP_{\text{Token}_\text{initial}/\text{KAIA}} = 0.0000183 \text{ KAIA}

Total Supply

Token total supply remains 1 Billion.

Ts=1,000,000,000T_s = 1,000,000,000

With 18 decimal places matching the native token, it is defined in base units as:

Tsunits=1,000,000,000×1018T_{\text{s}_\text{units}} = 1,000,000,000 \times 10^{18}

Initial Virtual Liquidity

Token Reserves

80% of the total supply, equivalent to 800,000,000 tokens, is reserved into the virtual pool and tradeable via the bonding curve. The remaining 20%, constituting 200,000,000 tokens, is deployed to the DEX upon migration.

Therefore initial reserves for the token (RtinitialR_{t_{initial}}) is:

Rtinitial=Ts×80100=800,000,000R_{t_{initial}} = T_s \times \frac{80}{100} = 800,000,000

Initial Market Cap

Initial market cap can be calculated as:

Market CapTokenfinal=Ts×PTokeninitial/KAIA×PKAIA/USD=1,000,000,000×0.0000183 KAIA×0.127 USD2,324.1 USD\text{Market Cap}_{\text{Token}_\text{final}} = T_s \times P_{\text{Token}_\text{initial}/\text{KAIA}} \times P_\text{KAIA/USD} \\ = 1,000,000,000 \times 0.0000183 \text{ KAIA} \times 0.127 \text{ USD} \approx 2,324.1 \text{ USD}

Where:

  • TsT_s is the total supply of KAIA tokens

  • PTokeninitial/KAIAP_{\text{Token}_\text{initial}/\text{KAIA}} is the initial price of the token

  • PKAIA/USDP_\text{KAIA/USD} is the price of KAIA in USD

📈 Price/Profit Projection on the Time of Migration (1/2)

Migration Threshold

The migration threshold is set at 546,614 KAIA, which is equivalent to approximately $69,420 at a KAIA price of $0.127. This specific value was chosen as a meme number.

Migration ThresholdKAIA=546,614 KAIA\text{Migration Threshold}_\text{KAIA} = 546,614 \text{ KAIA}
Migration ThresholdUSD546,614×0.127=69,419.978 USD69,420 USD\text{Migration Threshold}_\text{USD} \approx 546,614 \times 0.127 = 69,419.978 \text{ USD} \approx 69,420 \text{ USD}

Using the exponential bonding curve model, we can calculate various metrics at the time of migration:

Final Token Price

The final token price when the migration threshold is reached:

PTokenfinal/KAIA=0.000546614173228346 KAIAP_{\text{Token}_\text{final}/\text{KAIA}} = 0.000546614173228346 \text{ KAIA}

Total KAIA Raised

The total amount of KAIA raised through the bonding curve:

ΔRb124,424.78 KAIA\Delta R_b \approx 124,424.78 \text{ KAIA}

In production, this value can contain a small margin of error due to the approximate operations performed in smart contracts.

CPMM model after migration

After reaching the migration threshold, the system transitions from the exponential bonding curve to a Constant Product Market Maker (CPMM, or CPAMM) model for the DEX. The CPMM follows the equation:

xy=kx * y = k

Where:

  • xx represents the base token reserves (e.g. Wrapped KAIA)

  • yy represents the token reserves (i.e. Newly launched token on top of KaiaFun)

  • kk is a constant

The price of the token at any point can be calculated as:

P=xyP = \frac{x}{y}

For buying tokens:

Δy=ykx+Δx\Delta y = y - \frac{k}{x + \Delta x}

For selling tokens:

Δx=xky+Δy\Delta x = x - \frac{k}{y + \Delta y}

Where:

  • Δx\Delta x is the amount of base tokens added or removed

  • Δy\Delta y is the amount of tokens bought or sold

To maintain price continuity during this transition, we need to calculate the appropriate KAIA liquidity to deploy to the DEX that matches the final price in the bonding curve.

Migrated KAIA Liquidity

The amount of KAIA needed for DEX liquidity is calculated to match the final price in the bonding curve after migration to CPMM:

Rbfinal=PTokenfinal/KAIA×(TsRtinitial)109,322.83464567 KAIAR_{b_{final}} = P_{\text{Token}_\text{final}/\text{KAIA}} \times (T_s - R_{t_{initial}}) \approx 109,322.83464567 \text{ KAIA}

This ensures that the initial price in the CPMM DEX matches the final price of the exponential bonding curve, providing a smooth transition for traders.

Liquidity Fees

The amount of KAIA remaining after DEX deployment:

Remaining KAIA=ΔRbRbfinal15,101.946011 KAIA\text{Remaining KAIA} = \Delta R_b - R_{b_{final}} \approx 15,101.946011 \text{ KAIA}

🧮 Mathematical Analysis (2/2)

Price Increase

We can calculate the percentage increase in token price from initial to final:

Price Increase=PTokenfinal/KAIAPTokeninitial/KAIAPTokeninitial/KAIA×100%=0.0005466141732283460.00001830.0000183×100%2,886.96%\text{Price Increase} = \frac{P_{\text{Token}_\text{final}/\text{KAIA}} - P_{\text{Token}_\text{initial}/\text{KAIA}}}{P_{\text{Token}_\text{initial}/\text{KAIA}}} \times 100\% \\ = \frac{0.000546614173228346 - 0.0000183}{0.0000183} \times 100\% \approx 2,886.96\%

Market Cap at Migration

The market cap at the time of migration can be calculated as:

Market CapKAIA=Ts×PTokenfinal/KAIA=1,000,000,000×0.000546614173228346=546,614.173228346 KAIA\text{Market Cap}_\text{KAIA} = T_s \times P_{\text{Token}_\text{final}/\text{KAIA}} \\ = 1,000,000,000 \times 0.000546614173228346 = 546,614.173228346 \text{ KAIA}

Assuming a KAIA market price of $0.127, the market cap in USD is:

Market CapUSD=546,614.173228346×0.12769,419.9999999999 USD\text{Market Cap}_\text{USD} = 546,614.173228346 \times 0.127 \approx 69,419.9999999999 \text{ USD}

Which matches the target market cap.

Bonding Curve Constant

We can calculate the constant kk that defines our exponential curve:

k=ln(PTokenfinal/KAIAPTokeninitial/KAIA)=ln(0.0005466141732283460.0000183)3.396842143109809886k = \ln(\frac{P_{\text{Token}_\text{final}/\text{KAIA}}}{P_{\text{Token}_\text{initial}/\text{KAIA}}}) \\ = \ln(\frac{0.000546614173228346}{0.0000183}) \approx 3.396842143109809886

Last updated