Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,891,152
0x219B…c888
The eight checks
82 pools use this hook, the first one 43 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchNo owner() but it has sweepStranded, transferGovernance.
- 06pass
The code cannot changeNot a proxy, no DELEGATECALL, no SELFDESTRUCT.
- 07pass
Only the PoolManager can call itEach callback refused a call that did not come from the PoolManager.
- 08pass
Track record82 pools over 43 days.
Measured at block 92,891,152. A hook with an owner or a dynamic fee can behave differently later; scan again before a large trade.
What the address allows
A v4 hook's permissions are the last fourteen bits of its address. The PoolManager calls only what they switch on.
address & 0x3fff0x0888 · 00100010001000
- bit 13Before initialize
- bit 12After initialize
- bit 11Before add liquidity
- bit 10After add liquidity
- bit 9Before remove liquidity
- bit 8After remove liquidity
- bit 7Before swap
- bit 6After swap
- bit 5Before donate
What it did to a real swap
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.
USDG / CLIPPY
fee 0%- Swap USDG → CLIPPYno liquidity at the current price
- Swap CLIPPY → USDGno liquidity at the current price
- Add, then remove liquiditydeposit refused: NoLiquidity
pool 0xc22362534b2d139140cb5a99bbaf5b30171f78496a0a00fd2aee4fbe6b16d2b0
Read from the bytecode
- Code size
- 15,977 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 16
- Callbacks open to anyone
- none
Its functions, uncensored
Selectors found in the dispatcher, named from the public signature database. Red ones are what an owner usually keeps for itself.
- 0x021c3d96 replaceRoute
- 0x1b329645 routesFor
- 0x211a25f6 approvedFactoryCount
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x26cf3739
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
isApprovedFactory
0x279bc6bf quoteLegs0x313b709d observeRoute0x40459ef6 MIN_ROUTE_LIQUIDITY0x46ca626b TICK_SPACING0x53eeb8cc ROUTE_REPLACE_DELAY0x575e24b4 beforeSwap0x5aa6e675 governance0x65eb8dc7 basketFor0x6c2bbe7e afterRemoveLiquidity0x6d8d8a3b sweepStranded0x6fe7e6eb afterInitialize0x71aad9b0 routeDeadSince0x73a235b4 extendRoutes0x8a3e6356 approvedFactory0x8f15ae9b poolKeyFor0x9f063efc afterAddLiquidity0xadda33c5 approveFactory0xb260c480 capacity0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xd38bfff4 transferGovernance0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xe1b4af69 afterDonate0xfe1e0765 register