WETH / test
fee 0%- Swap WETH → testhook takes 1.00%
- Swap test → WETHhook takes 1%
- Add, then remove liquiditycame back whole
pool 0xc10394242497f6c95fc24c2ebaf55dba759276b9ab2cffef141520f5d6918fc4
Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
7 pools use this hook, the first one 65 d ago.
The address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
It takes 1% on top of the pool fee.
Liquidity added and removed in the same block came back whole.
A fixed fee of 0%, written in the pool key.
No owner() but it has withdrawOwed.
Not a proxy, no DELEGATECALL, no SELFDESTRUCT.
Each callback refused a call that did not come from the PoolManager.
7 pools over 64 days.
Measured at block 93,145,029. A hook with an owner or a dynamic fee can behave differently later; scan again before a large trade.
A v4 hook's permissions are the last fourteen bits of its address. The PoolManager calls only what they switch on.
A small swap each way and a liquidity round trip, run through the PoolManager and this hook inside a call that is never sent. The pool fee is expected; anything else missing is the hook.
pool 0xc10394242497f6c95fc24c2ebaf55dba759276b9ab2cffef141520f5d6918fc4
pool 0x9fe28e1f892c68809ebcafb1351a981ec2312fd4f3e8701e2817f4093672f571
Selectors found in the dispatcher, named from the public signature database. Red ones are what an owner usually keeps for itself.