Learn how DLMM’s dynamic fee system adapts in real-time to market volatility, rewarding liquidity providers during high-activity periods.
f_s
) consists of two parts:
f_b
: Base Fee (fixed)f_v
: Variable Fee (dynamic)B
: Base factor (set by pool creator)s
: Bin stepk
)A
: Variable fee control parameters
: Bin stepv_a(k)
: Volatility accumulator for bin k
v_a
)v_r
: Volatility reference (based on time since last swap)i_r
: Index referenceactiveID
: ID of the active bin before the swapk
: Relative bin index crossed during the swapv_r
)t
: Time since last transactiont_f
: Filter period (e.g., 1s)t_d
: Decay period (e.g., 5s)R
: Decay multiplieri_r
)i_r
ensures fees cannot be gamed by frequent low-impact swaps.Swap Action | Time | Bins Crossed | v_a (max) |
---|---|---|---|
#1 | Initial | +3 bins (100 → 103) | 3 |
#2 | 4s later | +5 bins (103 → 108) | 6.5 |
#3 | 0.3s later | -2 bins (108 → 106) | 4.5 |
Pool Type | Protocol Fee |
---|---|
Standard DLMM Pool | 5% of f_s |
DLMM Launch Pools | 20% of f_s |