Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,299,342
0x1fE2…2044
The eight checks
4 pools use this hook, the first one 31 d ago.
- 01caution
Permissions that touch your moneyThe address enables 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 3% 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 0x0883d1c3a7694dDaaF560B55753b81325C477E87. Owner-style functions: setGuardMaxTicks, sweep, setFactory, setLpOperator, setDistributor, setMinLpAdd.
- 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 record4 pools over 31 days.
Measured at block 93,299,342. 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 & 0x3fff0x2044 · 10000001000100
- 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.
LP / USER9229939383
fee 0%- Swap LP → USER9229939383hook takes 3%
- Swap USER9229939383 → LPhook takes 3%
- Add, then remove liquiditycame back whole
pool 0x5e52893cd3c079d77b128cca51ba205c4acca74c04d50c60af4eedbeb189a0eb
TESTY / USER9229939383
fee 0%- Swap TESTY → USER9229939383hook takes 1%
- Swap USER9229939383 → TESTYhook takes 1%
- Add, then remove liquiditycame back whole
pool 0x58b813875656ee87b1399cc0a826ead259da2f4b6ea27b82cb90d4943ae636a1
Read from the bytecode
- Code size
- 21,728 bytes
- Owner
- 0x0883d1c3a7694dDaaF560B55753b81325C477E87
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 16
- 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.
- 0x05505982 bandCount
- 0x137b474e exemptFromSnipeTax
- 0x16cab63f pairGuard
- 0x21d0ee70 beforeRemoveLiquidity
- 0x259982e5 beforeAddLiquidity
- 0x2c01ded8 MAX_BANDS_PER_POOL
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.
- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
0x2fe35a4e guardTicksPerHour0x359b4f30 pendingFees0x397faf87 seed0x3df3d3b8 setGuardMaxTicks0x4aef4070 sweep0x507e08bf commitGuard0x575e24b4 beforeSwap0x5bb47808 setFactory0x5c4ad2b6 pendingLp0x64df049e protocolFeeRecipient0x66de3790 setLpOperator0x6c2bbe7e afterRemoveLiquidity0x6dd36db1 launchedAtOf0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x72cf5366 lpOperator0x75619ab5 setDistributor0x79ba5097 acceptOwnership0x7af559b5 guardSqrtPriceX960x7c1632ce LP_ADD_COOLDOWN0x8239a85a bands0x84277bcc lpRouted0x89a69bd8 currentFeePolicy0x8da5cb5b owner0x91dd7346 unlockCallback0x92dc94be addLiquidity0x99fd9ce0 currentSnipeTaxBpsToward0x9e6c4e7d guardMaxTicks0x9f063efc afterAddLiquidity0x9f3b024c setMinLpAdd0xa7fd87ca snipeTaxExempt0xac1ff207 openingTick0xad091230 launches0xaf127937 registerPool0xaf6df296 minLpAdd0xb47b2fb1 afterSwap0xb5af6caa poolKeyOf0xb6a8b0fa beforeDonate0xbfe10928 distributor0xbfe7af83 setHookFeeBps0xc45a0155 unknown0xc4b7de97 feeEscrow0xc4e833ce getHookPermissions0xc8eaa792 pendingCreatorTax0xcab1ef67 quoteOf0xd1ec4cf6 seeded0xd7a41f92 currentSnipeTaxBps0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe521cb92 setProtocolFeeRecipient0xe6208826 setGuardTicksPerHour0xea26abcf hookFeeBps0xf046057b SEED_SALT0xf2fde38b transferOwnership0xf5d6b737 compound0xfc6bf3d0 lastLpAddAt0xff68daec pendingSnipeTax