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:
For example, a 2% fee without compounding gives 1% to the protocol and 1% to the creator. A 2% fee with 25% compounding gives 0.5% to compounding, 0.75% to the protocol, and 0.75% 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 seven available fee modes. If you don’t specify abagsConfigType, the Default mode is used.
Default
Config ID:fa29606e-5e48-4c37-827f-4b03d58ee23d
The standard fee structure. A flat 2% fee on all trades. Pre-migration, the fee is split equally between protocol and creator. Post-migration, 25% of fees are compounded back into the pool’s liquidity, with the remainder split equally between protocol and creator. 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
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
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
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.
2% Flat with 85% Supply Locked
Config ID:810faadb-030b-47de-a68b-7211c1cbbee3
Identical fee economics to the Default mode (a flat 2% fee, with 25% of post-migration fees compounded back into the pool’s liquidity), but 85% of the token supply is locked. Use this when you want the standard 2% fee structure while keeping the large majority of supply locked. This mode graduates at ~100 SOL rather than the usual 85 SOL.
Default with 1K Supply
Config ID:e2963a6c-441a-4862-9d80-b94e3a481cd7
Identical to the Default mode in every way (a flat 2% fee with 25% post-migration compounding), except the token launches with a 1,000 token supply. Use this when you specifically need a 1K total supply.
2% Base with 96% Supply Locked
Config ID:ba28db46-ea6f-4452-8218-5587f6aca0a1
Like the Default mode, 25% of post-migration fees are compounded back into the pool’s liquidity and the remainder is split equally between protocol and creator. This mode adds two things on top: 96% of the token supply is locked, and a market-cap-based fee post-migration (starting at 2% and decaying to a 0.5% floor).
Post-migration market-cap fee: the 2% base fee only holds during the bonding-curve phase. Once the token graduates (raises 55 SOL and migrates to the real DAMM v2 pool), the trading fee no longer stays flat — it starts at 2% and shrinks as the token’s market cap grows, down to a 0.5% floor. The bigger and more successful the token gets, the cheaper it is to trade. The decay is exponential (it drops faster early, then eases toward the floor) and bottoms out once the market cap is roughly 25x its value at graduation:
enableFirstSwapWithMinFee
When creating a fee share config, you can pass an optional boolean enableFirstSwapWithMinFee (default true) to the Create Fee Share Config endpoint. When true, the first swap on the new pool pays the minimum (ending) base fee instead of the starting cliff fee.
This only matters for config types that use a base-fee scheduler (one whose base fee changes over time). No current config type uses a base-fee scheduler, so this field has no effect right now — you can safely omit it. It is retained for forward compatibility in case scheduler-based config types are introduced later.
Choosing the Right Mode
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.Graduation Thresholds
Every token launches on a bonding curve and graduates (migrates to a DAMM V2 pool) once it raises a set amount of SOL. Most modes graduate at 85 SOL; the supply-locked modes differ.Alternative: Using the Bags CLI
This section requires the Bags CLI. See Install and Set Up the Bags CLI to get started.
--skip-confirm to any command to bypass the confirmation prompt.
