Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,951,666
0x3493…2ac0
The eight checks
37 pools use this hook, the first one 3 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity. 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.08%, written in the pool key.
- 05caution
No one holds the switchNo owner() but it has withdrawFloat, setAdmin, setGlobalPaused, setGasPolicy, sweep, setTrustedRouter.
- 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.
- 08caution
Track record37 pools, first seen 3 days ago.
Measured at block 92,951,666. 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 & 0x3fff0x2ac0 · 10101011000000
- 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.
CASHCAT / WETH
fee 0.08%- Swap CASHCAT → WETHno liquidity at the current price
- Swap WETH → CASHCATno liquidity at the current price
- Add, then remove liquiditydeposit refused: ThirdPartyLiquidityBlocked
pool 0x3a0707d84e28bf9fe7e8991566f0cbe47bf94dd62ee116a80006eb2a8663c5ef
Read from the bytecode
- Code size
- 24,572 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 18
- 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.
- 0x037aadbe getPoolConfig
- 0x048be042 withdrawFloat
- 0x0ebedb7b minimumGasAtEntry
- 0x0eccae5a unknown
- 0x156e9f36 unknown
- 0x159ada6a unknown
- 0x1701c0f5 unknown
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.
- After swap. Runs after every swap.
0x1c7fec65
unknown
0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x264e97e0 isTrustedRouter0x34c5a943 unknown0x42585c7b unknown0x575e24b4 beforeSwap0x5889c30b residueRecipient0x5e7f3ef4 unknown0x61a552dc globalPaused0x67968bae unknown0x6ba42aaa isKeeper0x6eb2ed1f minimumGasBeforeCanonical0x704b6c02 setAdmin0x76cad834 setGlobalPaused0x7ae1216e unknown0x7e2729ac minimumGasAfterCanonical0x7e8d4335 unknown0x863861b6 unknown0x86e50565 setGasPolicy0x91dd7346 unlockCallback0xac4e4054 REQUIRED_HOOK_FLAGS0xb47b2fb1 afterSwap0xb877154b unknown0xb8dc491b sweep0xc4e833ce getHookPermissions0xc64f5351 setTrustedRouter0xcd30b973 unknown0xcd49568d setResidueRecipient0xd1b9e853 setKeeper0xd2e936dd unknown0xd737d0c7 msgSender0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe0a2482d unknown0xea647b25 setTrustedQuoter0xf851a440 admin