V4PoolHook
BaseRegisteredV4PoolHook charges a fixed 1% protocol fee on exact-input swaps by intercepting input tokens via poolManager.take() and returning a BeforeSwapDelta; exact-output swaps are unconditionally blocked. Accumulated fees are claimable by a designated FEE_COLLECTOR role, and liquidity addition is restricted to an lpManager until a CONFIG_ADMIN enables public liquidity.
?CheckingBytecode not analysed yet
Pools
1
Dynamic-fee pools
0
Last new pool
7mo
Code size
—
What it can do
Runs code on every swap
Its code executes inside each trade in pools that use it.
Can take tokens from swaps
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
Gates who can add liquidity
It checks every deposit before it goes in.
Runs at pool creation
It runs when a pool is created, often to lock in that pool’s settings.
Pools using this hook
1 totalPairCreatedFeePool ID