Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,328,328
0xC6c9…2A88
The eight checks
4 pools use this hook, the first one 88 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity, 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 sweepPendingBurn.
- 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 record4 pools over 87 days.
Measured at block 93,328,328. 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 & 0x3fff0x2a88 · 10101010001000
- 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.
PMEME / USDG
fee 0%- Swap PMEME → USDGno liquidity at the current price
- Swap USDG → PMEMEno liquidity at the current price
- Add, then remove liquiditydeposit refused: LiquidityDisabled
pool 0x8f15434a6e1abaa20f9cd930d1ec10ba3801fc00f954462c2c1a7154ca470070
Read from the bytecode
- Code size
- 19,312 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 29
- 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.
- 0x1865e9d1 v3SwapRouter
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x2a2dae0a tokenDeployer
- 0x2a404738 usdgToBasketScale
- 0x3fc8cef3 weth
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before initialize. Runs once, when a pool is created.
- Before add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before remove liquidity. Can refuse a withdrawal. LPs may not get out.
- 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.
0x575e24b4
beforeSwap
0x61eff550 SELF_POOL_TICK_SPACING0x7998c2cc DEFAULT_LEG_SLIPPAGE_BPS0x7c887c59 v3Factory0x7cf30a30 SELF_POOL_SQRT_PRICE_X960x8f7eaf6d createBasket0x91dd7346 unlockCallback0xa9ecf9a4 sweepPendingBurn0xaf95bc5c createBasketFor0xb5e34011 intermediate0xb9533a7f selfPoolKey0xbaf75489 basketRegistry0xc3a6fa6c SELF_POOL_FEE0xc4e833ce getHookPermissions0xc6a653e5 routeRegistry0xd77ab72d rebalanceExecutor0xda82140c feeAuction0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe5a13b51 executeSellLeg0xe5ddd24e launcherPayout0xf5b91b7b usdg0xfec4ff17 tokenVersion