Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,922,332
0x0eDf…6880
The eight checks
37 pools use this hook, the first one 86 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02fail
What it takes from a swapOne direction works and the other is refused (BuyNotAuthorized). You may be able to buy and not sell.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x7De8473b75BD562DDB33DD7d0731987127330304. Owner-style functions: setBuyGateState, setSigner, setPoolSigner, transferOwnership, setLauncher.
- 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 record37 pools over 85 days.
Measured at block 92,922,332. 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 & 0x3fff0x2880 · 10100010000000
- 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 / D
fee 0.01%- Swap WETH → Drefused: BuyNotAuthorized
- Swap D → WETHnothing taken
- Add, then remove liquiditydeposit refused: LiquidityNotAuthorized
pool 0xcdb9ac1d4cacc1ae07823e7f4c6206f3df8a614ad1464d0fe2fcfc6510772449
WETH / QUIVAPP
fee 1%- Swap WETH → QUIVAPPnothing taken
- Swap QUIVAPP → WETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x416dd66359d458defa77435780fb6c6d4eb812e7c9256ca9a196e068cc4019f3
Read from the bytecode
- Code size
- 14,052 bytes
- Owner
- 0x7De8473b75BD562DDB33DD7d0731987127330304
- 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.
- 0x07ef2190 poolConfigs
- 0x09959b1b retiredSigners
- 0x0bf7ed09 registerPool
- 0x16eebd1e launcher
- 0x1c20ad89 invalidateAuthorizations
- 0x21d0ee70 beforeRemoveLiquidity
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.
0x238ac933 signer0x259982e5 beforeAddLiquidity0x310d700c setBuyGateState0x31115cfa closeBootstrap0x35a9e4df universalRouter0x3a094c91 poolConfigsBatch0x3fc8cef3 weth0x55c29b56 disableLiquidityExclusivity0x575e24b4 beforeSwap0x6a385519 hashVoucher0x6c19e783 setSigner0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x791b98bc positionManager0x79ba5097 acceptOwnership0x84b0196e eip712Domain0x8549d9be REQUIRED_FLAGS0x8da5cb5b owner0x9f063efc afterAddLiquidity0xa7916d6b purchasedTokens0xb47b2fb1 afterSwap0xb5a7a7fd BUY_TYPEHASH0xb6a8b0fa beforeDonate0xb8c417b9 effectiveSigner0xc574d9a4 setPoolSigner0xc6bbd5a7 quoter0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe858fa4b MAX_VIEW_PAGE0xf2fde38b transferOwnership0xf4c094c8 setLauncher