USDG / OTEST
fee dynamic, now 0.15%- Swap USDG → OTESThook takes 0.93%
- Swap OTEST → USDGhook takes 0.95%
- Add, then remove liquiditylost 2.13%
pool 0xfd1da8e8b40621664c21d0fc76192eeb6d25bfe225ffe98dd51e23bb3ea839f5
Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
35 pools use this hook, the first one 12 d ago.
The address enables before remove liquidity, before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
It takes 0.95% on top of the pool fee.
Taking liquidity straight back out lost 2.13%.
Its pools use a dynamic fee that the hook sets before every swap. It stands at 0.15% now and can change.
No owner and no admin functions found.
The bytecode contains DELEGATECALL.
Each callback refused a call that did not come from the PoolManager.
35 pools over 12 days.
Measured at block 92,923,648. 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 0xfd1da8e8b40621664c21d0fc76192eeb6d25bfe225ffe98dd51e23bb3ea839f5
pool 0xf6d3b26860823af00161d691245c6c1fb3a674b68763bdb714825274581df253
Selectors found in the dispatcher, named from the public signature database. Red ones are what an owner usually keeps for itself.