The volatility fee
The extra fee a DLMM pool charges when the price moves fast: how it rises, and how it decays.
A DLMM pool charges a base fee that comes with its bin step, plus a volatility fee that rises when the price moves fast and fades once it calms down. So LPs earn the most exactly when the price is swinging and their inventory is most at risk.
The hook keeps a volatility accumulator. Each swap adds how many bins the price has moved from a reference bin, and the extra fee grows with the square of it. When more than 30 seconds pass between swaps, the reference moves to the current bin and half the volatility carries over; after 10 minutes without a swap, none does.
A burst of trading in one direction drives the fee up within seconds; a quiet market brings it back to the base fee. Each swap pays the fee for where the price stands when it starts.
A pool page shows this live under Pool info: Base fee, Dynamic fee now and Fee per swap now.