Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,923,383
0x645f…05c7
The eight checks
43 pools use this hook, the first one 37 d ago.
- 01caution
Permissions that touch your moneyThe address enables after swap returns delta, after add returns delta, after remove returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02pass
What it takes from a swapA swap through it pays the pool fee and nothing else.
- 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 0x1B39746D77D056504d1Eb04341bAdF3Ef6c7dB0F. Owner-style functions: setPaused, setOwnerBps, setFeeOverride, paused, setExemptAddress, setCreatorBps.
- 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 record43 pools over 37 days.
Measured at block 92,923,383. 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 & 0x3fff0x05c7 · 00010111000111
- 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 / RSI
fee 0%- Swap ETH → RSInothing taken
- Swap RSI → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0xd9a940c88c04a298fd7575b28c64a578e4f8e0c6eae03f380eb0384836e7bd47
ETH / TITSLA
fee 0%- Swap ETH → TITSLAnothing taken
- Swap TITSLA → ETHnothing taken
- Add, then remove liquiditycame back whole
pool 0x20ef5161349f7684a095b53b7f673df0a0acf74ddeba77e79cfca93598cf1590
Read from the bytecode
- Code size
- 17,715 bytes
- Owner
- 0x1B39746D77D056504d1Eb04341bAdF3Ef6c7dB0F
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 8
- 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.
- 0x08ac6289 tierTwoFee
- 0x0d3e5f53 unknown
- 0x0dfb2ca9 unknown
- 0x142f7daf unknown
- 0x16c38b3c setPaused
- 0x1c21e91e unknown
- 0x21d0ee70 beforeRemoveLiquidity
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After add liquidity. Runs after each deposit.
- After remove liquidity. Runs after each withdrawal.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
- After add returns delta. Can charge LPs on the way in.
- After remove returns delta. Can take part of what LPs withdraw.
0x2590d25f RESEARCH_NOTICE0x259982e5 beforeAddLiquidity0x26b73baa unknown0x28762daa unknown0x29f03851 setOwnerBps0x2b6ad0e8 setFeeOverride0x38759da4 gasThreshold0x3a3a118f unknown0x3b01d64d OVERRIDE_FEE_FLAG0x3fc48eba MAX_LP_FEE0x46904840 feeRecipient0x46c82328 unknown0x4b4687b5 whitelistOnly0x51194b0c unknown0x53608258 unknown0x54b9c343 ownerBps0x575e24b4 beforeSwap0x5a6c72d0 defaultFee0x5c975abb paused0x5f86e231 unknown0x5fbbc0d2 getFeeConfig0x65a08c0e unknown0x67f085cd unknown0x687e2c17 trustedRouter0x68f0a1d9 GAS_BUFFER_BPS0x698c3891 setExemptAddress0x6b6b26f6 unknown0x6c2bbe7e afterRemoveLiquidity0x6c627262 unknown0x6fe7e6eb afterInitialize0x73fd43e2 unknown0x7f71a5ab unknown0x810da780 exemptAddress0x847d3e21 unknown0x8da5cb5b owner0x94168af8 swapCount0x9a50c628 tierOneFee0x9d951b3b tierThreeFee0x9f063efc afterAddLiquidity0x9f43c63f clearFeeOverride0xa307f997 setCreatorBps0xa3f4bac7 ALL_HOOK_MASK0xaba20abd unknown0xac4e4054 REQUIRED_HOOK_FLAGS0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc446726a setTrustedRouterBatch0xc45a0155 unknown0xc4e833ce getHookPermissions0xc64f5351 setTrustedRouter0xc674517d unknown0xc80b94de unknown0xc859ec5d unknown0xcc60c132 feeOverride0xce6f4cf8 DEFAULT_GAS_THRESHOLD0xd9caed12 withdraw0xdc161fa9 unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xde90e29b creatorBps0xe1a45218 BPS_DENOMINATOR0xe1b4af69 afterDonate0xe4fbb609 CREATOR0xe5096cba unknown0xe52e3820 DEFAULT_CREATOR_BPS0xe74b981b setFeeRecipient0xea05a8c6 setWhitelistOnly0xebbdb29a unknown0xf2fde38b transferOwnership0xf8a49c89 unknown0xff31bbc1 unknown0xfff84cd6 setTrustedOrigin