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.

Last updated