Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,210,358
0xd6c1…c0CC
The eight checks
5 pools use this hook, the first one 98 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 1.25% of each swap on top of the pool fee.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 0%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x58100D7C01a1B2A764A78b60792Cd2D8af29C965. Owner-style functions: setFeeTiers, setModuleGasLimit, setHookModule, claim, setCustomFeesEnabled, setCreatorRecipientsAtLaunch.
- 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 record5 pools over 98 days.
Measured at block 93,210,358. 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 & 0x3fff0x00cc · 00000011001100
- 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.
ETH / Koko
fee 0%- Swap ETH → Kokohook takes 1.25%
- Swap Koko → ETHno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0xf2c00a760ef2cc0a0b6ce3a9fd4379601e8f7901a6c1e3558bbe89c6cf51d002
ETH / STROID
fee 0%- Swap ETH → STROIDhook takes 1.25%
- Swap STROID → ETHno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0x3fca1f9d48cca19d42dd5d1968e331d4808c8cc93e936e19a908e99021d2a91a
Read from the bytecode
- Code size
- 13,209 bytes
- Owner
- 0x58100D7C01a1B2A764A78b60792Cd2D8af29C965
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 3
- 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.
- 0x02b1a5ce SPLIT_DENOM
- 0x06d6e63f protocolWallet
- 0x07c3d4af MAX_TIERS
- 0x08364f19 MAX_CUSTOM_FEE_BPS
- 0x09ec9a09 setFeeTiers
- 0x0ebab9ce MIN_CREATOR_BPS
- 0x215e9673 adminSetCustomFee
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- 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.
0x21d0ee70 beforeRemoveLiquidity0x258a76a9 setModuleGasLimit0x259982e5 beforeAddLiquidity0x26c0d1c8 registerCreator0x2c582f69 adminSetPartnerForToken0x3267b05f setHookModule0x37864fad launchInfoOf0x4e71d92d claim0x52e05328 creatorRecipientCount0x552e5be6 MAX_MODULE_BPS0x56a643e8 MIN_CUSTOM_FEE_BPS0x575e24b4 beforeSwap0x577fd2dc customFeeBps0x5ae8e8dc setCustomFeesEnabled0x678b2d62 MAX_CREATOR_RECIPIENTS0x680686b7 ethOwed0x6a0f95dd setCreatorRecipientsAtLaunch0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x71d5f4be setPartnerBps0x76d5b2d7 currentFeeBps0x79ba5097 acceptOwnership0x7ad53b36 customFeesEnabled0x7c4dd544 adminSetCreatorRecipients0x7d74e36d MAX_MODULE_GAS0x84ac7614 setPartnerForTokenAtLaunch0x899d433b previewCustomFeeBps0x8da5cb5b owner0x90930ddd setCustomFeeAtLaunch0x94967005 protocolBps0x96b55f7d tierCount0x9f063efc afterAddLiquidity0xa566e951 hookModule0xade80921 MAX_PARTNER_BPS0xb3b057e8 setAntiSnipeEnabled0xb47b2fb1 afterSwap0xb55f0dba partnerBpsOf0xb6a8b0fa beforeDonate0xbc366b04 unknown0xbd10bc5f antiSnipeEnabled0xc0baf4f6 unknown0xc1f9af4e moduleGasLimit0xc2119e95 CUSTOM_FEE_RETAIN_BPS0xc4e833ce getHookPermissions0xcff28a14 ANTI_SNIPE_MAX_BUY_BPS0xd55be8c6 MAX_FEE_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xde90e29b creatorBps0xdea5c2e0 creatorOf0xdebe3c1d ANTI_SNIPE_WINDOW0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe32c25b8 partnerOf0xe76f81ba effectivePartnerBpsFor0xe9a4d24f getFeeTiers0xf11c44ad CUSTOM_FEE_BAND_SIZE_WEI0xf2fde38b transferOwnership0xf53b6543 CUSTOM_FEE_MAX_REDUCTIONS0xf8b48019 setSplit0xf9dcb253 getCreatorRecipients0xfe3292a5 currentMcapEth