Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,147,039
0x921d…68C0
The eight checks
7 pools use this hook, the first one 43 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02caution
What it takes from a swapIt takes 2% 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.
- 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 0x78a4E4BCC8ab559B6d3B1Cb9eab0A04a2411c726. Owner-style functions: collect, claimCreatorFees, setFactory, setLossRewardPool, setPostGraduationFee, setFeeConverter.
- 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 42 days.
Measured at block 93,147,039. 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 & 0x3fff0x28c0 · 10100011000000
- 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 / DHT
fee dynamic, now 0%- Swap ETH → DHThook takes 2.00%
- Swap DHT → ETHhook takes 2%
- Add, then remove liquiditydeposit refused: CannotAddLiquidity
pool 0xd808bcbc92e34aaa1b4bade3403707392c4107bb30850c5916669d79ae8e6694
ETH / INCENTIFI
fee dynamic, now 0%- Swap ETH → INCENTIFIhook takes 2.00%
- Swap INCENTIFI → ETHhook takes 2.00%
- Add, then remove liquiditydeposit refused: CannotAddLiquidity
pool 0x1d8748aaa686e96eb8657f1a6aa9f6a206f81bd4ed0a42dca97233b9cca84a07
Read from the bytecode
- Code size
- 17,446 bytes
- Owner
- 0x78a4E4BCC8ab559B6d3B1Cb9eab0A04a2411c726
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 20
- 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.
- 0x06ec16f8 collect
- 0x1e8cfb4a INVARIANT_K
- 0x21d0ee70 beforeRemoveLiquidity
- 0x239f3af7 TICK_UPPER
- 0x257f1c22 postGraduationFeePips
- 0x259982e5 beforeAddLiquidity
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.
0x2a782802 creatorBalances0x30040054 poolIdOf0x351fee46 claimCreatorFees0x46ca626b TICK_SPACING0x47377d92 TICK_LOWER0x4739f7e5 registerToken0x4dd94695 addFundWithAction0x500b6b83 lpOpen0x575e24b4 beforeSwap0x57b859cd lossRewardPool0x5bb47808 setFactory0x604d0ab9 DEFAULT_POST_GRADUATION_FEE_PIPS0x61dba83c PRE_GRADUATION_FEE_PIPS0x6700c0c3 VIRTUAL_ETH0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x7ae6ac7a setLossRewardPool0x7ddf07be tokenStates0x8652edf9 poolKeyOf0x8da5cb5b owner0x902d55a5 TOTAL_SUPPLY0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xa14124c2 feeConverter0xad6a3054 CURVE_LIQUIDITY0xb47b2fb1 afterSwap0xb4f7bdd7 seedCurve0xb6a8b0fa beforeDonate0xc45a0155 unknown0xc4e833ce getHookPermissions0xc653e7ed curveStates0xcb892b58 setPostGraduationFee0xd5f39488 deployer0xd64aae88 launchSqrtPriceX960xd8ce4a42 setFeeConverter0xdc3fa909 creditCreatorFees0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe1f4e335 MAX_POST_GRADUATION_FEE_PIPS0xe5bdb858 VIRTUAL_TOKEN0xf2fde38b transferOwnership0xf4042bc3 GRADUATION_ETH_TARGET0xfad55cd8 setLpOpen0xfc64ea35 priceCheckpoints