The Existential Dread Launchpad - Memecoin Launchpad

I’m a bit of a math geek and I’m curious about the specifics. Can you explain the mathematical principles behind TED’s bonding curve?

2 Likes

Omg the great messi has commented on my project lol.
How did you get that username bro.

2 Likes

Actuallly A bonding curve in TED sets the token price based on its supply. The more tokens that are bought, the higher the price goes. This ensures a continuous supply of liquidity, making sure there’s always enough liquidity without needing external market makers. It’s like having a built-in stabilizer for your memecoin. :balance_scale:

3 Likes

Just got lucky you can say🤑

3 Likes

You can Pretend I am the real one Haha

2 Likes

Cool, will research more about it

3 Likes

Feel free to ask any more questions

1 Like

Most of the critical data, including token transactions and bonding curve mechanics, are stored on-chain to ensure transparency and security. For other data, like user profiles and settings, we use off-chain storage solutions to maintain efficiency and scalability. :link:

1 Like

Absolutely! TED allows you to customize various aspects of your memecoin, such as the initial supply, token name, symbol, and even the bonding curve parameters. This gives you the flexibility to create a memecoin that fits your vision perfectly. :star2:

1 Like

What databases are you using for the on-chain and off-chain storages?

2 Likes

Pinata for On-chain Storage;
MongoDB for Off-Chain Storage;

1 Like

Great observation! We use TradingView APIs to generate and update the charts in real-time. This allows users to see up-to-date price movements and trading volumes for each memecoin, providing a comprehensive view of the market activity. :bar_chart:

2 Likes

Can you send me the link from where I can Access these Trading View Apis to use these charts in my webapp?

1 Like

Documentation I mean

1 Like

Okay, wow,
Thats a lot of flexibility for a Hackathon Project.

Me also.
I m gonna need that documentation too.

TED’s bonding curve provides a natural buffer against volatility by adjusting the token price based on demand. Additionally, the automatic liquidity transfer to a DEX at the $69k market cap helps stabilize the token by creating a liquidity pool, which facilitates smoother trading and reduces the impact of large trades. :bar_chart:

1 Like

Well I am a math geek too so I understand your curiosity. Actually, TED uses a linear bonding curve to determine the price of tokens based on their supply. I can break down the formulas for minting and burning tokens for you:

Minting Tokens

When minting tokens, the cost is calculated using this formula:

Cost = number of tokens * (1 + current supply * k) + (k * number of tokens * (number of tokens - 1) / 2)

Where:

  • current supply is the total supply of tokens before minting.
  • number of tokens is the number of tokens to be minted.
  • k is a constant (set to 1 in our contract).

Breakdown:

  1. Base Price: number of tokens * (1 + current supply * k) – This accounts for the existing supply.
  2. Additional Cost: (k * number of tokens * (number of tokens - 1) / 2) – This accounts for the increasing cost as more tokens are minted in a single transaction.

Example Calculation:
If the current supply is 10 and the number of tokens is 5 with k = 1:

  1. Base Price: 5 * (1 + 10 * 1) = 5 * 11 = 55
  2. Additional Cost: (1 * 5 * (5 - 1) / 2) = (5 * 4 / 2) = 10

Total cost to mint 5 tokens: 55 + 10 = 65

Burning Tokens

When burning tokens, the refund is calculated using this formula:

Refund = number of tokens * (1 + (current supply - 1) * k) - (k * number of tokens * (number of tokens - 1) / 2)

Where:

  • current supply is the total supply of tokens before burning.
  • number of tokens is the number of tokens to be burned.
  • k is a constant (set to 1 in our contract).

Breakdown:

  1. Base Refund: number of tokens * (1 + (current supply - 1) * k) – This accounts for the existing supply.
  2. Reduction in Refund: (k * number of tokens * (number of tokens - 1) / 2) – This accounts for the decreasing refund as more tokens are burned in a single transaction.

Example Calculation:
If the current supply is 10 and the number of tokens is 5 with k = 1:

  1. Base Refund: 5 * (1 + (10 - 1) * 1) = 5 * 10 = 50
  2. Reduction in Refund: (1 * 5 * (5 - 1) / 2) = (5 * 4 / 2) = 10

Total refund for burning 5 tokens: 50 - 10 = 40

The bonding curve ensures that the price to mint tokens increases as the supply grows, providing stable liquidity. Similarly, burning tokens refunds less as the supply decreases, maintaining balance. This predictable and controlled pricing model helps manage token supply and demand effectively. :rocket::chart_with_upwards_trend:

If you got any more questions just DM me.

1 Like

I feel there can be better more complex algorithms for this, but I guess it is a robust and stable for now

2 Likes

isnt this project is similar to this one ? Pump On TRON | The anti-rug meme launch and trading application - #48 by anurag12

2 Likes