Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,328,746
0xf8Be…d0Cc
The eight checks
3 pools use this hook, the first one 90 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.
- 02pass
What it takes from a swapIt takes 1.00% 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 0x9eb2b58df71d545260D5DB857DA0Ab5b461E6559. Owner-style functions: withdrawCreatorFees, withdrawPlatformFees, 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 record3 pools over 89 days.
Measured at block 93,328,746. 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 & 0x3fff0x10cc · 01000011001100
- 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 / SAMURAISUSHI
fee 0%- Swap WETH → SAMURAISUSHIhook takes 1.00%
- Swap SAMURAISUSHI → WETHno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0x7efcaafacd8f9760b00fd3a1b3f173ed053cbb6abed43da230871479b2209bac
WETH / LITTLEKITTY
fee 0%- Swap WETH → LITTLEKITTYhook takes 1.00%
- Swap LITTLEKITTY → WETHno liquidity above the price
- Add, then remove liquiditycame back whole
pool 0x0fa56f43a46f6bbb2fbf252524eb7250201746c0312a365271eb3cb68196b87a
Read from the bytecode
- Code size
- 23,465 bytes
- Owner
- 0x9eb2b58df71d545260D5DB857DA0Ab5b461E6559
- 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.
- 0x07597c7d unknown
- 0x0808634c cutoffSecondsFromMidnightUTC
- 0x0b8c5565 uerc20Factory
- 0x0e99d055 unknown
- 0x18178358 poke
- 0x1e97f91a creatorFeesAccrued
- 0x21d0ee70
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After initialize. Runs once, right after a pool is created.
- 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.
beforeRemoveLiquidity
0x22163b86 platformFeesAccrued0x2234c28c unknown0x259982e5 beforeAddLiquidity0x2d97c997 unknown0x302469bf topupPrize0x32e614fc startingMcapTick0x36d64d5c dayId0x388f6064 memes0x3a04272d unknown0x3a371e32 netWethFlow0x3e23d733 MIN_CONFIG_DELAY0x4061a5bf getTop30x41cd25bd executePrizeForEndedDay0x42df21de tokenToMeme0x48b277ee unknown0x48e09f37 unknown0x4bde38c8 platform0x516ba238 poolToMeme0x52b2f01d memePrizeWinBlock0x543f99a8 scheduleTreasury0x57150546 endingMcapTick0x575e24b4 beforeSwap0x5862df0f unknown0x5b4ca96c unknown0x61a7b2df canonicalPoolId0x61d027b3 treasury0x62d00ac3 platformSplit0x63860139 nextPrizePool0x6c2bbe7e afterRemoveLiquidity0x6fd1af8d unknown0x6fe7e6eb afterInitialize0x719ce73e prizePool0x72cb6701 scheduleAdmin0x73962620 withdrawCreatorFees0x79ba5097 acceptOwnership0x7b2124d2 memeCount0x7bffc393 unknown0x7c7d079c unknown0x8525d15d totalWethLiabilities0x8b9f3d0e executeAdmin0x8da5cb5b owner0x90409f49 gameRoundDuration0x91dd7346 unlockCallback0x9838db30 unknown0x9f063efc afterAddLiquidity0xa4b44372 createMeme0xad5c4648 WETH0xae6f455c unknown0xaf6482b7 unknown0xb36c40f3 unknown0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbb2a46d9 executeTreasury0xbe8b206e top3Memes0xbfa827ac unknown0xc4526ec5 unknown0xc5be9457 unknown0xc855d4cb unknown0xd0b0589d inTop30xd0b7830b withdrawPlatformFees0xd0c93a7c tickSpacing0xd74e2717 TierRequirementChanged0xdb30f924 unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd0bebe8 lastFlowDayId0xe0712aeb unknown0xe1b4af69 afterDonate0xe1c33a45 MAX_CONFIG_DELAY0xe30c3978 pendingOwner0xe61f0e34 memePoolKey0xf2fde38b transferOwnership0xf46d0676 configDelay0xf6d11945 totalCreatorFeesAccrued0xf851a440 admin0xfa35a002 memeCreatedBlock