# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.something.cool/sc-bonding-curve/fees.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
