Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,269,826
0x13B6…10cc
The eight checks
4 pools use this hook, the first one 54 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 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.05%, written in the pool key.
- 05caution
No one holds the switchOwned by 0x9832fe7FF528E12E0DADdf0157CD8397BEaB6897. Owner-style functions: setExecutor, setPoolEnabled, paused, setKeeperBps, setMinProfit, setRouter.
- 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 54 days.
Measured at block 93,269,826. 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 & 0x3fff0x10cc · 01000011001100
- 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 / CASHCAT
fee 0.05%- Swap ETH → CASHCATno liquidity at the current price
- Swap CASHCAT → ETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0xf47bc4ac7dd153231c4b8cbf4d81a588e9e568dbd66c65c778168ac915fb77d0
Read from the bytecode
- Code size
- 19,309 bytes
- Owner
- 0x9832fe7FF528E12E0DADdf0157CD8397BEaB6897
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 6
- 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.
- 0x03f60a78 pot
- 0x047dbeb8 gasCap
- 0x0ef337f6 splitFor
- 0x10a388fb unknown
- 0x11179d7c unknown
- 0x170cba5c unknown
- 0x1c3c0ea8 setExecutor
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After initialize. Runs once, right after a pool is created.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
- After swap returns delta. Can take part of what you get out of every swap.
0x1e57bc4a
quotePriority
0x1ea38067 unknown0x21d0ee70 beforeRemoveLiquidity0x23eb2de5 unknown0x259982e5 beforeAddLiquidity0x25f0f118 unknown0x2d9997b0 unknown0x3d70fcb0 unknown0x4000072e setPoolEnabled0x4545ea04 unknown0x49e4438b unknown0x4c74986f unknown0x4e0bcc09 unknown0x4f42798c unknown0x4fb6f707 unknown0x575e24b4 beforeSwap0x5c975abb paused0x61d027b3 treasury0x62d53b57 unknown0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x79ba5097 acceptOwnership0x84a0d05f unknown0x87db2f5f unknown0x89ee5f78 MAX_LEVY_BPS0x8da5cb5b owner0x8efd659f unknown0x91dd7346 unlockCallback0x96150c92 unknown0x98e85391 startTick0x9a331b18 setKeeperBps0x9aff53ee defaultSplit0x9b3f4617 unknown0x9ef609e1 setMinProfit0x9f063efc afterAddLiquidity0xa71a0e40 groupOf0xa7af3c02 unknown0xaaabf572 unknown0xaca9f1ed minProfit0xad091230 launches0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbbaa01e6 unknown0xbdf2199b unknown0xbe1b1ed9 unknown0xc34c08e5 executor0xc3c64674 setRouter0xc46da1a7 unknown0xc4e833ce getHookPermissions0xd50ca4b4 keeperBps0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe13a690d unknown0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xe3c07ebf endLaunch0xf0f44260 setTreasury0xf2fde38b transferOwnership0xf66cc47e unknown0xf7df7bcc unknown0xffffffff LOCK8605463013