Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,142,672
0x8DBD…3Ac8
The eight checks
6 pools use this hook, the first one 74 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.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 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 1%, 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 record6 pools over 74 days.
Measured at block 93,142,672. 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 & 0x3fff0x3ac8 · 11101011001000
- 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.
AMZN / TEST
fee 1%- Swap AMZN → TESTnothing taken
- Swap TEST → AMZNnothing taken
- Add, then remove liquiditydeposit refused: UnauthorizedLiquidityMutation
pool 0x7c0fe9b7a0af51e27f77645e1960c30833e35fd5bbd3057ca390d848ef3fa8b3
GHOSTCAT / USDG
fee 1%- Swap GHOSTCAT → USDGnothing taken
- Swap USDG → GHOSTCATnothing taken
- Add, then remove liquiditydeposit refused: UnauthorizedLiquidityMutation
pool 0x0898f842552bf7d78127195c0d8f370bd9610fa49f709247d219656909de97ea
Read from the bytecode
- Code size
- 11,148 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 1
- 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.
- 0x01ffc9a7 supportsInterface
- 0x03fd2a45 DEAD
- 0x0885f732 poolConfig
- 0x0a4be5b5 DAMPER_DURATION
- 0x1beb0f9f surchargeRemainderPips
- 0x21d0ee70 beforeRemoveLiquidity
- 0x23e7c143
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.
- After initialize. Runs once, right after 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.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
IMPACT_FULL_X18
0x259982e5 beforeAddLiquidity0x362c540a MAX_IMPACT_PIPS0x456cb7c6 authorized0x4c4a3c25 stateView0x575e24b4 beforeSwap0x5c51507e STRESS_SCALE0x65e84bb1 BASELINE_PIPS0x6fe7e6eb afterInitialize0x7460feda RECENT_WINDOW0x760f5da4 previewSell0x78091129 sellFlow0x78bbe9f9 currentTickCumulative0x91ca42ae IMPACT_START_X180x9fcbfa7e previewSellBreakdown0xa3f4bac7 ALL_HOOK_MASK0xa8c91644 MAX_CLIP_PIPS0xac4e4054 REQUIRED_HOOK_FLAGS0xac7f1ece MAX_STRESS_PIPS0xb47b2fb1 afterSwap0xc1b4cb6b launchBoundarySqrtPriceX960xdc4c90d3 poolManager0xdc98354e beforeInitialize0xf77c4791 controller