How Dynamic Fees Fit With Base Fees
Every DBC pool has a base fee mode. Dynamic fees sit on top of that base fee. If dynamic fees are disabled, the dynamic fee is zero.How It Works
DBC tracks recent price movement with a volatility accumulator. When swaps move price, the accumulator can increase. As time passes, the volatility reference can decay. The final dynamic fee is calculated from that volatility measurement and the dynamic fee settings.Dynamic Fee Formula
In product terms:- More recent price movement can increase the fee.
- The fee is capped by configuration so it does not grow without bound.
- The fee can cool down as volatility decays.
- The total trading fee is still capped at
99%after the base fee and dynamic fee are added.
Why Use Dynamic Fees
Volatility Response
Fees can increase when price movement becomes more intense.
Launch Protection
Dynamic fees can add extra cost during sudden demand spikes.
LP Compensation
Fee capture can increase during moments when the pool is taking more price risk.
Works With Base Modes
Dynamic fees can be paired with fixed fees, schedulers, or rate limiter fees.
Product Examples
Fixed Fee + Dynamic Fee
Fixed Fee + Dynamic Fee
The launch keeps a simple default fee, but the fee can rise during volatile bursts.
Time Scheduler + Dynamic Fee
Time Scheduler + Dynamic Fee
The launch starts with high time-based fees and adds volatility response on top.
Rate Limiter + Dynamic Fee
Rate Limiter + Dynamic Fee
Large buys can pay more through the rate limiter, while volatility can add another adaptive layer.
SDK Helper Behavior
When using DBC SDK curve-building helpers with dynamic fees enabled, the helper-generated dynamic fee is designed around a maximum dynamic fee of up to 20% of the base fee. Example:
This is a helper-level product convention for common launch configurations. Custom configurations still need to respect the program’s dynamic fee validation rules, including the default 1 bps bin step, filter period below decay period, reduction factor at most
10000, and volatility parameter caps.
