Functions

This section provides detailed documentation for all functions available in the SC Bonding Curve contract.

Available Functions

  1. Create Token - Creates a new token with a bonding curve

  2. Buy Token - Purchases tokens from the bonding curve using SOL

  3. Sell Token - Sells tokens back to the bonding curve for SOL

  4. Admin Migrate - Migrates token from bonding curve to DEX after finalization (admin only)

  5. Admin Set Properties - Sets platform-wide properties (admin only)

Each function documentation includes:

  • Parameter descriptions

  • Required accounts

  • Function logic

  • Example usage

Last updated