1,000,000,000. For example, 2,500,000 is 0.25%, and 990,000,000 is 99%.
Curve Segment Formula
Each DBC curve segment behaves like a constant-product price range. In DBC product terms:xrepresents the base token side of the curve.yrepresents the quote token side of the curve.Lrepresents virtual liquidity.sqrt_pricerepresents the square root of the token price.
Base Tokens Sold Through a Segment
The amount of base token available across a curve segment is: In product terms, this tells you how much launched token can be sold while the price moves through that segment. If a segment has more liquidity, more quote tokens are needed to move price through the segment. If it has less liquidity, price moves faster.Quote Tokens Collected Through a Segment
The amount of quote token needed to move through a segment is: In product terms, this tells you how much buying demand is needed to move from one curve price to the next.Migration Quote Threshold
The migration quote threshold is the amount of quote reserve needed before the launch can graduate. For a multi-segment curve, the total quote amount is the sum of the quote amount across each segment up to the migration price: The pool becomes migration-ready when:Migration Price
The migration price is the price reached when the quote reserve hits the migration threshold. DBC derives this price from the curve and uses it to initialize the migrated DAMM pool. This matters because the post-migration DAMM pool should open around the price discovered by the bonding curve, not an unrelated price chosen after the fact.Total Trading Fee
DBC trading fees have two layers: The base fee is always present. The dynamic fee is optional and becomes zero when disabled. The total fee numerator is capped at990,000,000, or 99%.
Base Fee
The base fee is the default trading fee behavior. DBC supports fee scheduler and rate limiter behavior:
A fixed-fee launch can be represented as a scheduler that does not decay.
Dynamic Fee
The dynamic fee responds to volatility. In product terms, the dynamic fee rises when price movement becomes more intense and decays when trading calms down.Fee Split
DBC first splits the total trading fee into protocol and non-protocol portions. If a referral is included, the referral receives a share of the protocol fee. The remaining trading fee is shared between partner and creator according to the config.Migration Fee
DBC can take a configured migration fee from the quote reserve at graduation. That fee can be split between partner and creator. Partner and creator migration-fee withdrawals are available after the curve is complete because the program can then confirm the launch reached its migration quote threshold. The quote amount used for migration is calculated by removing the configured migration fee from the migration threshold, rounded up:A fixed 0.2% protocol liquidity migration fee also applies during migration. It is separate from the configurable partner and creator migration fee, and it reduces the base and quote liquidity deposited into the migrated pool.
Pool Creation Fee
Partners can configure a pool creation fee that is paid when a creator launches from the config. Pool creation fee claims are tied to virtual pool creation, not to curve completion or migration. If configured, the pool creation fee must be between0.001 SOL and 100 SOL, denominated in lamports.
Surplus
Surplus is extra quote reserve above the migration threshold. DBC allocates 80% of surplus to partner and creator, then splits that share using the creator trading fee percentage. The remaining 20% is protocol surplus.Leftover
Leftover applies to fixed-supply launches. In product terms, leftover is the unused base token supply that remains after the migrated pool is created and claimable base-token fee balances are excluded.Transfer Fees
A Token 2022 transfer fee is charged by the token program on the transfer. The curve and the DBC trading-fee numerator use the post-fee amount. On an exact-in swap, the curve input is the amount left after the input mint’s transfer fee. The amount the user receives is the curve output after the output mint’s transfer fee. On an exact-out swap, the curve output is grossed up so the user still receives the requested amount after the output mint’s fee, and the input is grossed up by the input mint’s fee. A fee is zero when its basis points are0 or its maximum fee is 0. The base mint fee is the config’s transfer_fee_basis_points with a maximum fee of u64::MAX. The quote mint fee is the TransferFeeConfig epoch fee.
At migration, version 1 configs on the transfer-fee path deposit the transfer-fee-excluded amount of each mint. The side whose fee takes the larger fraction of its budget is deposited at that post-fee amount. The other side is scaled by the same ratio. Scaled base rounds up. Scaled quote rounds down. The liquidity that reaches DAMM v2 is lower by the larger of the two fees. The part of the scaled side that is not deposited is added to the protocol migration fee.
