Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,241,995
0xe103…2080
The eight checks
5 pools use this hook, the first one 14 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02pass
What it takes from a swapIt takes 0.20% on top of the pool fee.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 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.
- 05pass
No one holds the switchNo owner and no admin functions found.
- 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 record5 pools over 13 days.
Measured at block 93,241,995. 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 & 0x3fff0x2080 · 10000010000000
- 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.
USDG / META
fee dynamic, now 0%- Swap USDG → METAhook takes 0.20%
- Swap META → USDGhook takes 0.20%
- Add, then remove liquiditycame back whole
pool 0xcc3ea76273406cc38c117b894d239cca1c1a49167f587ec7b0a4021f8f2c42f1
SPCX / USDG
fee dynamic, now 0%- Swap SPCX → USDGhook takes 0.20%
- Swap USDG → SPCXhook takes 0.20%
- Add, then remove liquiditycame back whole
pool 0x99a4425f1cac0d964ac8ec9855ac7215b8ed34306dbc89ec25b53f49fd3af00e
Read from the bytecode
- Code size
- 16,081 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 0
- 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.
- 0x0749e51e WALK_STEPS
- 0x0c340a24 governor
- 0x1587e58f cancelFeeTable
- 0x15c15023 nextFeeTable
- 0x19b98ba5 MIN_MEMORY_SECONDS
- 0x2178cb72 MAX_WINDOW_SECONDS
- 0x2e9da083 installCalendar
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
0x2fbbd7f0
quoteFee
0x30750479 calendarEnd0x37159f4a MIN_SESSION_FEE0x3c3fe99d cancelWindow0x3f8136da MAX_FEE_OUTSIDE_WINDOW0x52b724bd WINDOW_SPACING0x55bab301 MAX_TRIGGER0x575e24b4 beforeSwap0x5aadabf5 calendarStart0x7428951e MIN_TRIGGER0x74e586ed calendarEntry0x89e71eb7 MAX_CALENDAR_ENTRIES0x8a20a658 WINDOW_NOTICE0x8b7ceabc postWindow0x8cebd942 poolInfo0x95c48bd5 proposeGovernor0xa8c5a215 reduceWindow0xaca29979 MAX_WINDOW_FEE0xb72704a5 registerPool0xbc688228 MAX_SLOPE_TENTHS0xbff2c8f3 calendarLength0xc4e833ce getHookPermissions0xc87a3e15 TABLE_SPACING0xd3dedd4e earningsWindow0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe0c05596 postFeeTable0xe3056a34 pendingGovernor0xe58bb639 acceptGovernor0xeb9ee8e0 TABLE_NOTICE0xecd8e907 sessionAt0xf8848888 MAX_MEMORY_SECONDS0xf937aac9 MAX_SESSION_FEE