Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,146,136
0xB267…2800
The eight checks
6 pools use this hook, the first one 53 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04caution
The fee is the feeA fixed fee, but a high one: 2%.
- 05pass
No one holds the switchNo owner and no admin functions found.
- 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 record6 pools over 53 days.
Measured at block 93,146,136. 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 & 0x3fff0x2800 · 10100000000000
- 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.
WETH / WOBIN
fee 2%- Swap WETH → WOBINnothing taken
- Swap WOBIN → WETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x80af3c27047c92f2e4ab32b7761be8fe3fa04a7fc2d74cb615160507f295c0fa
WETH / RCAT
fee 2%- Swap WETH → RCATnothing taken
- Swap RCAT → WETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x5e20ad101c4d86ae3b510ac707be22bf2dd1c9aafd5e32f86b63e006bd03b60e
Read from the bytecode
- Code size
- 6,191 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 0
- 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.
- 0xc45a0155 unknown
- 0xd4130486 factoryVersion
- 0xdbdcc68f MIN_CANONICAL_POOL_FEE_PIPS
- 0xdc4c90d3 poolManager
- 0xdc98354e beforeInitialize
- 0xf9948947 registerPool
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.
0x89b9fe8f
MIN_EXCLUSIVITY_BLOCKS
0x8a2be940 registration0x8fd1d36e releaseActivationBlock0xa3f4bac7 ALL_HOOK_MASK0xb69a12d1 permissionBitmap0xbc234eb7 hookPermissions0x3dc4487e MIN_CANONICAL_POOL_TICK_SPACING0x4521788c MAX_CANONICAL_POOL_TICK_SPACING0x4d78d40b releaseId0x64a8b121 EXPECTED_PERMISSION_BITMAP0x6be4e31f MAX_EXCLUSIVITY_BLOCKS0x866dc50c expectedChainId0x057d360d arbSysRuntimeCodeHash0x1057d40f arbSys0x1b9ccb7f factoryRuntimeCodeHash0x259982e5 beforeAddLiquidity0x31d04a19 MAX_CANONICAL_POOL_FEE_PIPS0x35030b7a poolManagerRuntimeCodeHash