Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,209,303
0x90c3…e8CC
The eight checks
7 pools use this hook, the first one 7 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.
- 02caution
What it takes from a swapIt takes 4% of each swap on top of the pool fee.
- 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.
- 05caution
No one holds the switchOwned by 0x72215670C2266Bc224949A12C514a77D7fD5D566. Owner-style functions: collectProtocolFees, setDropRecipient, setStampFee, setStartTick, setFeeRecipient, transferOwnership.
- 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 record7 pools over 7 days.
Measured at block 93,209,303. 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 & 0x3fff0x28cc · 10100011001100
- 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.
IMD / SEAMAN
fee 0%- Swap IMD → SEAMANhook takes 4.00%
- Swap SEAMAN → IMDhook takes 4%
- Add, then remove liquiditydeposit refused: HookNotAllowed
pool 0x140fd3298d2878c193b4e3fb412f09846447464261ce3c84463c9de89562f064
IMD / CRG
fee 0%- Swap IMD → CRGhook takes 4.00%
- Swap CRG → IMDno liquidity above the price
- Add, then remove liquiditydeposit refused: HookNotAllowed
pool 0x398eff6bfea7ca68d3edf2b8c6b4e78bd413a0b49669cdcf72594b8be1d04139
Read from the bytecode
- Code size
- 20,162 bytes
- Owner
- 0x72215670C2266Bc224949A12C514a77D7fD5D566
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 15
- 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.
- 0x036a7535 MIN_START_TICK
- 0x08b66372 HOOK_FLAGS
- 0x0ae89127 tokenOfPool
- 0x0be1d8af DROP_BPS
- 0x0c697cdb launchTick
- 0x0cfb82c0 MAX_START_TICK
- 0x0e6f1dc0 MAX_STAMP_FEE
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 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.
0x1dfaa679
launch
0x1f2d8550 launches0x1fa4e045 pendingProtocolFees0x21d0ee70 beforeRemoveLiquidity0x249d39e9 BPS0x259982e5 beforeAddLiquidity0x29232e94 stampFee0x2a54db01 collectProtocolFees0x3209ccbe launchWithPermit0x40c553ab MAX_METADATA0x46904840 feeRecipient0x46ca626b TICK_SPACING0x4ac638f3 POOL_SUPPLY0x53baf861 ethRouter0x55d1cb60 poolKey0x575e24b4 beforeSwap0x590aad0d setDropRecipient0x5e3f2727 LP_FEE0x5ef1b692 dropRecipient0x634282af allTokens0x64d06218 setStampFee0x69644c75 acceptFeeRecipient0x6c2bbe7e afterRemoveLiquidity0x6f17f80b sellPriceLimit0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x756bf254 MAX_NAME0x79ba5097 acceptOwnership0x8708a6f0 launchSqrtPrice0x8da5cb5b owner0x902d55a5 TOTAL_SUPPLY0x91dd7346 unlockCallback0x982595ba acceptDropRecipient0x98aab22e startTick0x9b3c5674 STAMP0x9f063efc afterAddLiquidity0x9f181b5e tokenCount0xabc4937c postOffice0xaea91078 price0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xba4d381b pendingDropRecipient0xbf333f2c FEE_BPS0xc4fb32c3 marketCap0xc502ccb4 setStartTick0xccde8ac0 MAX_SYMBOL0xd0abb693 IMD0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe4dcfa6e pendingFeeRecipient0xe74b981b setFeeRecipient0xf2fde38b transferOwnership0xf887ea40 router0x02d05d3f creator0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x3644e515 DOMAIN_SEPARATOR0x392f37e9 metadata0x70a08231 balanceOf0x7ecebe00 nonces0x84b0196e eip712Domain0x9361266c pad0x95d89b41 symbol0xa9059cbb transfer0xd505accf permit0xdd62ed3e allowance