Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,174,266
0x7635…6044
The eight checks
6 pools use this hook, the first one 20 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 2% 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 1%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x376244a951aC361f4885bDE59f669C6FcB0ffC21. Owner-style functions: sweepPoolFees, sweepAndConvert, setFeeSweepOperator, setMaxInternalPriceImpact.
- 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 record6 pools over 20 days.
Measured at block 93,174,266. 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.
CASHCAT / BCT
fee 1%- Swap CASHCAT → BCThook takes 2%
- Swap BCT → CASHCAThook takes 2%
- Add, then remove liquiditycame back whole
pool 0x01f8689f3eae04fdcf1c091d4d14e608354ada5e29d424d560ec80c27b4d5460
ETH / SI
fee 1%- Swap ETH → SIhook takes 2%
- Swap SI → ETHhook takes 2%
- Add, then remove liquiditycame back whole
pool 0x3d6caff7454d34f184d6ae2211012d838f750c93bdca3ce749d8b6e2d8750398
Read from the bytecode
- Code size
- 9,987 bytes
- Owner
- 0x376244a951aC361f4885bDE59f669C6FcB0ffC21
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 12
- 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.
- 0x9a10c9cb sweepPoolFees
- 0x9a295f00 MAX_FEE_CONVERSION_IMPACT_BPS
- 0xaa4cfccd STATE_VIEW
- 0xb47b2fb1 afterSwap
- 0xbc234eb7 hookPermissions
- 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.
- After swap. Runs after every swap.
- After swap returns delta. Can take part of what you get out of every swap.
0x89f69f01 HOOK_FEE_BPS0x8a36a6bb feeSweepOperator0x8da5cb5b owner0x90addc1e maxInternalPriceImpactBps0x91389945 pendingProtocolFees0x91dd7346 unlockCallback0x388c9805 sweepAndConvert0x41971958 LIQUIDITY_LOCKER0x4af5fdcc FEE_CONVERSION_COOLDOWN0x54faf9c3 setFeeSweepOperator0x62308e85 POOL_MANAGER0x738db109 conversionSchedule0x073c29b9 registerPool0x0885f732 poolConfig0x121193f0 ADAPTER0x30112530 setMaxInternalPriceImpact0x307ab7de DEFAULT_MAX_PRICE_IMPACT_BPS0x359b4f30 pendingFees