πŸ‘¨β€πŸ’»For Developers

Each token is initialized through a bonding curve. The bonding curve is created by the bonding curve deployer, a smart contract that simply takes care of adding fees, making sure the token is deployed & a safe bonding curve is created. On your token smart contract, call "bondingCurve". In exchange you will be provided with a bonding curve address.

Once you know your bonding curve smart contract, simply call "buy" and "sell".

The buy function takes a comment string. It can be emtpy ("") or you can add a comment. The BUY function is payable therefore we recommend sending at least 0.005 ETH. Sending lower ETH may result in safe underflow and therefore no tokens sent to you.

When you sell, you must specify the tokenAmount being sold, as well as the comment. Again, the comment can be empty string ("'). You MUST approve tokens to be spent before calling sell otherwise it won't work.

Solidity Events

Looking to create a BOT? Each bonding curve smart contract creates an event "BUY" or "SELL" shown below.

Bonding Curve Deployer

As previously stated, the bonding curve deployer is responsible for making sure tokens are safe, as well as applying fees and keeping track of bonding curves deployed.

The bonding curve address is:

If you call the bondingCurvesLenght (uint256), you will get the number of bonding curves deployed.

You can further iterate through them

Or use "fetchPage" to go through paging throughough bonding curves.

Last updated