Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,920,543
0x2D0e…a8Cc
The eight checks
40 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.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchOwned by 0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd. Owner-style functions: withdrawPlatformFees, setAntiSnipeDefaults, claimRefund, claimCreatorFees, setFeeRecipient, collectPoolFees.
- 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 record40 pools over 90 days.
Measured at block 92,920,543. 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.
ETH / 哈基米
fee dynamic, now 0%- Swap ETH → 哈基米hook takes 1.00%
- Swap 哈基米 → ETHno liquidity above the price
- Add, then remove liquiditydeposit refused: curve phase
pool 0x14960a8d653d780bc429d1b80e21bd6b7c1cefd3f33deb4495cf941b1fada4d9
ETH / FakeAi
fee dynamic, now 0%- Swap ETH → FakeAihook takes 1.00%
- Swap FakeAi → ETHno liquidity above the price
- Add, then remove liquiditydeposit refused: curve phase
pool 0xbc8b454c3e98691e1b0d252c2acbfe4e08f8fa6b8780019ba9cfeb6b511879d2
Read from the bytecode
- Code size
- 35,043 bytes
- Owner
- 0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 41
- 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.
- 0xe1b4af69 afterDonate
- 0xe23801f5 CTO_VETO_DELAY
- 0xec3889b5 withdrawPlatformFees
- 0xf07e96b3 lastActivity
- 0xfcba2b29 lockFeeRecipient
- 0xdc98354e beforeInitialize
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.
0xdf1b80ae
lockFeeRecipientTo
0xdf7787a4 MAX_WALLET0xdfcee7d2 feeRecipientOf0xced31285 GRADUATED_LP_FEE0xd8d0dfdb SQRT_START0xd98b2f5c quoteSell0xdc4c90d3 poolManager0xc1db1b62 antiSnipePeakBps0xc27ca318 ctoProposals0xc38bd15c setAntiSnipeDefaults0xc4e833ce getHookPermissions0xb5545a3c claimRefund0xb6a8b0fa beforeDonate0xbc3da535 refunds0xbf333f2c FEE_BPS0xaf73cc42 ANTI_SNIPE_MAX_BPS0xb47125f9 SQRT_GRAD0xb47b2fb1 afterSwap0xb5217bb4 pools0x902d55a5 TOTAL_SUPPLY0x91dd7346 unlockCallback0x988b1fa7 poolOf0x9f063efc afterAddLiquidity0x847a74ad antiSnipeWindow0x8652edf9 poolKeyOf0x8da5cb5b owner0x9016af09 creatorFees0x678fd289 coinCount0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x741965d8 executeCtoRedirect0x800939ab CTO_INACTIVITY0x575e24b4 beforeSwap0x5a7f97cf create0x5c16e15e lastClaim0x670171fd LP_SUPPLY0x46ca626b TICK_SPACING0x47377d92 TICK_LOWER0x4af43955 feeRecipientLocked0x5654d75a pairLastLaunch0x32f0e8c0 FULL_TICK_UPPER0x351fee46 claimCreatorFees0x3541dbde L_CURVE0x3cfc7ede PAIR_COOLDOWN0x239f3af7 TICK_UPPER0x259982e5 beforeAddLiquidity0x270401cb setFeeRecipient0x31e658a5 state0x17de3c7e collectPoolFees0x194a4e7e platformFees0x1e4c7292 CURVE_SUPPLY0x21d0ee70 beforeRemoveLiquidity0x11b288ad proposeCtoRedirect0x13560cac allCoins0x13af4035 setOwner0x14b406cb antiSnipeEnabled0x0200737f GRADUATION_GAS0x03d60c01 FULL_TICK_LOWER0x0d7a94f6 quoteBuy0x0ed56ffe ANTI_SNIPE_MAX_WINDOW0x313ce567 decimals0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xdd62ed3e allowance0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom