Documentation

Technical reference for the Bonker token factory.

Dynamic Fees

The BonkerHookDynamicFeeV2 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 max LP fee (capped at 10%)
  • Decay filter: volatility accumulator decays over time so fees naturally settle back down

Fee distribution

Fee distribution is handled automatically by the hook. No manual configuration needed — fees accrue to the FeeLocker and can be claimed anytime.

Static fee alternative

For pools that prefer a fixed fee, the BonkerHookStaticFeeV2 provides a constant LP fee without volume-based adjustments.