The GlasspadHookDynamicFeeV2 adjusts LP fees in real time based on trading activity.
How it works
- Base fee: minimum 0.25% (2500 bps), configurable per pool
- Volatility accumulator: tracks recent tick movement with exponential decay
- Fee scaling: as tick volatility increases, fees increase up to the maximum LP fee (capped at 10%)
- Decay filter: the volatility accumulator decays over time, so fees decrease again as volatility subsides
Fee distribution
Fee distribution is handled automatically by the hook. No manual configuration is required; fees accrue to the FeeLocker and can be claimed at any time.
Static fee alternative
For pools that prefer a fixed fee, the GlasspadHookStaticFeeV2 provides a constant LP fee without volume-based adjustments.
