Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,362,988
0x87da…68EC
The eight checks
3 pools use this hook, the first one 74 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02fail
What it takes from a swapEvery swap through it was refused: InvalidTradeContext. Only an approved router may get through.
- 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.
- 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 record3 pools over 74 days.
Measured at block 93,362,988. 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 & 0x3fff0x28ec · 10100011101100
- 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 / NMS
fee 0%- Swap WETH → NMSrefused: InvalidTradeContext
- Swap NMS → WETHrefused: InvalidTradeContext
- Add, then remove liquiditydeposit refused: LiquidityAuthorizationFailed
pool 0x7794574eb4253657407de0f4276c9a1f3360078b93ca3c3ad76fdcbef6e52883
WETH / NMS
fee 0%- Swap WETH → NMSrefused: InvalidTradeContext
- Swap NMS → WETHrefused: InvalidTradeContext
- Add, then remove liquiditydeposit refused: LiquidityAuthorizationFailed
pool 0xb453840251a30541202afcb8915dc051e525b7c27696cf93df46a2ff312d0029
Read from the bytecode
- Code size
- 20,644 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 8
- 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.
- 0x028541ed positionManagerCodeHash
- 0x13821bf7 OBSERVATION_PERIOD
- 0x15ab64af activateTrading
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x38b90333 CONTRACT_VERSION
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- Before donate. Runs before a donation to LPs.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
- After swap returns delta. Can take part of what you get out of every swap.
0x3fc8cef3 weth0x431c828f everGraduated0x478222c2 feeVault0x4c4a3c25 stateView0x575e24b4 beforeSwap0x598b2dee externalTradeNonces0x6233b32a SCHEMA_VERSION0x6c2bbe7e afterRemoveLiquidity0x6f34454d registerLaunch0x6fe7e6eb afterInitialize0x75d30ce4 poolManagerCodeHash0x791b98bc positionManager0x7d9eef83 basePrincipalWeth0x84796005 armLiquidity0x8e5df237 graduationStatus0x9f063efc afterAddLiquidity0xacb3067b verifyLiquidityAuthorizationConsumed0xb2c2f865 stateViewCodeHash0xb47b2fb1 afterSwap0xb5217bb4 pools0xb6a8b0fa beforeDonate0xc3dc7ca0 marketReference0xc45a0155 unknown0xc4e833ce getHookPermissions0xc9d4623f engine0xd7b96d4e locker0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe2c1d1d1 TWAP_WINDOW0xe74ec265 OBSERVATION_CARDINALITY0xf11457c7 oracleState0xf887ea40 router