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?
Omg the great messi has commented on my project lol.
How did you get that username bro.
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.
Just got lucky you can say🤑
You can Pretend I am the real one Haha
Cool, will research more about it
Feel free to ask any more questions
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.
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.
What databases are you using for the on-chain and off-chain storages?
Pinata for On-chain Storage;
MongoDB for Off-Chain Storage;
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.
Can you send me the link from where I can Access these Trading View Apis to use these charts in my webapp?
Documentation I mean
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.
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:
- Base Price: number of tokens * (1 + current supply * k) – This accounts for the existing supply.
- 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:
- Base Price: 5 * (1 + 10 * 1) = 5 * 11 = 55
- 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:
- Base Refund: number of tokens * (1 + (current supply - 1) * k) – This accounts for the existing supply.
- 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:
- Base Refund: 5 * (1 + (10 - 1) * 1) = 5 * 10 = 50
- 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.
If you got any more questions just DM me.
I feel there can be better more complex algorithms for this, but I guess it is a robust and stable for now
isnt this project is similar to this one ? Pump On TRON | The anti-rug meme launch and trading application - #48 by anurag12