Something.cool
  • Getting started
    • Why Something.cool?
    • 1st stage - Bonding curve
    • 2nd stage - CoolDEX trading
  • Zero-fee coins
    • What is Zero-fee coin?
    • How to launch Zero-fee coin
  • Community coins
    • What is Community coin?
    • Community contribution / How it works?
      • Holders
      • Liquidity providers
      • Burning
    • How to launch Сommunity coin
  • Features
    • Coin Explore
      • New Pairs
      • Coin Vision
    • Spaces
    • Rewards
  • Community
    • Referral program
    • X
    • Media kit
  • Developer Resources
  • Platform Architecture
    • Technical Introduction
    • Overview
    • Components
  • SC Bonding Curve
    • Overview
    • Functions
      • Create Token
      • Buy Token
      • Sell Token
      • Migrate
      • Admin Set Properties
    • Price Calculation
    • Fees
  • CoolDEX
    • Overview
    • Functions
      • Initialize Pool
      • Swap Base In
      • Swap Base Out
      • Deposit
      • Withdraw
      • Withdraw PnL
    • Price Calculation
    • Fees
  • Token Types
    • Token Types
  • Migration Process
    • Migration Process
  • Rewards Claiming
    • Overview
    • Authentication
    • Endpoints
    • Errors
    • Example
  • Reference
    • SC Bonding Curve IDL
    • CoolDEX IDL
    • Log Structure
    • DEVNET EXAMPLES
  • INTERNAL API
    • Overview
    • Register
  • Example: Registering a User via Internal API (JavaScript)
Powered by GitBook
On this page
  • Platform Fee
  • Fee Application
  • Buy Operations
  • Sell Operations
  • Fee Configuration
  • Post-Migration Fees
  1. SC Bonding Curve

Fees

This page details the fee structure for the SC Bonding Curve component of the Something Cool platform.

Platform Fee

SC Bonding Curve charges a platform fee on all buy and sell operations:

  • Fee Rate: 1% of the transaction amount in SOL

  • Fee Recipient: TBA

Fee Application

Buy Operations

For buy operations, the fee is deducted from the input SOL amount:


amount_without_fee = sol_to_spend \* (10000 - platform_fee_bps) / 10000

Example:

  • User spends 100 SOL

  • Platform fee = 1% = 1 SOL

  • Amount used for token calculation = 99 SOL

Sell Operations

For sell operations, the fee is deducted from the output SOL amount:


sol_to_fee = sol_to_return \* platform_fee_bps / 10000
sol_to_user = sol_to_return - sol_to_fee

Example:

  • Calculation determines user should receive 100 SOL

  • Platform fee = 1% = 1 SOL

  • User receives 99 SOL

Fee Configuration

The platform fee is configurable.

The current platform fee is stored in the properties account and is specified in basis points (1/100th of a percent). For example, a value of 100 basis points represents a 1% fee.

Post-Migration Fees

When creating a token, you can specify the fee structure that will apply after migration to the CoolDEX:

  • after_migration_fee: Fee percentage (0, 0.25%, 0.5%, 1%, 2%, or 5%)

  • after_migration_burn_bp: Percentage of fees allocated to burning

  • after_migration_holders_bp: Percentage of fees allocated to token holders

  • after_migration_lp_bp: Percentage of fees allocated to liquidity providers

These parameters determine how fees will be distributed after the token migrates to the CoolDEX, but they do not affect the platform fee charged on SC Bonding Curve operations.

PreviousPrice CalculationNextOverview

Last updated 2 months ago