When launching a token via the Bags API, you can customize the fee structure by passing the optional bagsConfigType parameter to the Create Fee Share Config endpoint. This controls how much in trading fees the token takes at different stages of its lifecycle.
Fee Distribution
All trading fees are split between the protocol and the creator. The split depends on whether fee compounding is enabled:
| Setup | Protocol | Creator | Compounding |
|---|
| No compounding | 50% of fee | 50% of fee | — |
| 50% compounding | 25% of fee | 25% of fee | 50% of fee |
For example, a 2% fee without compounding gives 1% to the protocol and 1% to the creator. A 1% fee with 50% compounding gives 0.5% to compounding, 0.25% to the protocol, and 0.25% to the creator.
Fee Modes
There are four available fee modes. If you don’t specify a bagsConfigType, the Default mode is used.
Default
Config ID: fa29606e-5e48-4c37-827f-4b03d58ee23d
| Stage | Total Fee | Protocol | Creator |
|---|
| Pre-migration | 2% | 1% | 1% |
| Post-migration | 2% | 1% | 1% |
The standard fee structure. A flat 2% fee on all trades, split equally between protocol and creator. No compounding. This is the simplest option and works well for most token launches.
Low Pre / High Post with Compounding
Config ID: d16d3585-6488-4a6c-9a6f-e6c39ca0fda3
| Stage | Total Fee | Protocol | Creator | Compounding |
|---|
| Pre-migration | 0.25% | 0.125% | 0.125% | — |
| Post-migration | 1% | 0.25% | 0.25% | 0.5% |
Lower fees during the bonding curve phase to encourage early trading volume, then a higher fee rate once the token graduates to the DAMM V2 pool. Post-migration, 50% of fees are compounded back into the pool’s liquidity, deepening the order book over time.
High Pre / Low Post with Compounding
Config ID: a7c8e1f2-3d4b-5a6c-9e0f-1b2c3d4e5f6a
| Stage | Total Fee | Protocol | Creator | Compounding |
|---|
| Pre-migration | 1% | 0.5% | 0.5% | — |
| Post-migration | 0.25% | 0.0625% | 0.0625% | 0.125% |
Higher fees during the bonding curve phase to maximize early fee revenue, then reduced fees post-migration to encourage continued trading. Post-migration, 50% of fees are compounded back into the pool’s liquidity.
High Flat with Compounding
Config ID: 48e26d2f-0a9d-4625-a3cc-c3987d874b9e
| Stage | Total Fee | Protocol | Creator | Compounding |
|---|
| Pre-migration | 10% | 5% | 5% | — |
| Post-migration | 10% | 2.5% | 2.5% | 5% |
A high flat 10% fee on all trades. Post-migration, 50% of fees are compounded back into the pool’s liquidity, rapidly deepening the order book. Best suited for tokens that want to maximize fee revenue and liquidity growth simultaneously.
Choosing the Right Mode
| Goal | Recommended Mode |
|---|
| Simple, consistent fees | Default (2% / 2%) |
| Encourage early trading, earn more post-graduation | Low Pre / High Post (0.25% / 1%) |
| Maximize early fee revenue, encourage post-graduation volume | High Pre / Low Post (1% / 0.25%) |
| Maximize fee revenue and liquidity growth | High Flat with Compounding (10% / 10%) |
The bagsConfigType is set once when creating the fee share config and cannot be changed after the token is launched. Choose your fee structure carefully before launching.
Alternative: Using the Bags CLI
You can create and manage fee share configurations directly from the terminal:
Create a fee share config:
bags config create \
--mint TOKEN_MINT \
--fee-claimers '[{"user":"WALLET_A","userBps":5000},{"user":"WALLET_B","userBps":5000}]'
Update an existing config (requires admin authority):
bags config update \
--mint TOKEN_MINT \
--fee-claimers '[{"user":"WALLET_A","userBps":7000},{"user":"WALLET_B","userBps":3000}]'
Transfer admin authority to another wallet:
bags config transfer-admin --mint TOKEN_MINT --new-admin NEW_ADMIN_PUBKEY
List all tokens where you are admin:
Add --skip-confirm to any command to bypass the confirmation prompt.
What is Fee Compounding?
The two non-default modes both enable 50% fee compounding after migration. This means that half of the trading fees collected post-migration are automatically reinvested into the DAMM V2 pool’s liquidity rather than being distributed. This deepens the pool over time, leading to tighter spreads and better trading conditions for the token.
The remaining 50% of post-migration fees are split equally between the protocol and the creator (25% each of the total fee).