SwapHook
BaseRegisteredObservation hook that counts the number of beforeSwap and afterSwap calls per pool ID. beforeAddLiquidity and beforeRemoveLiquidity are implemented as no-ops that simply return their selector.
ALooks safeRegistered, verified, immutable
Pools
5
Dynamic-fee pools
0
Last new pool
20mo
Code size
3,044 B
What it can do
Runs code on every swap
Its code executes inside each trade in pools that use it.
Can block LP withdrawals
It runs before liquidity is removed, so it can delay or refuse LP exits.
Gates who can add liquidity
It checks every deposit before it goes in.
Pools using this hook
5 totalPairCreatedFeePool ID