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,502
0x80A6…40c4
The eight checks
4 pools use this hook, the first one 34 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.
- 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%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xc6cf9Db04887e11Ce04FBBE8A49498140B9CeE82. Owner-style functions: transferOwnership, withdraw, paused, setFeeOverride, setPaused.
- 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 33 days.
Measured at block 93,299,502. 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 & 0x3fff0x00c4 · 00000011000100
- 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.
SPCX / USDG
fee 0%- Swap SPCX → USDGno liquidity at the current price
- Swap USDG → SPCXno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0x00b45a654fbe4445e35948ef446a92cdbe5d80c8532e685568b75f633b4061db
Read from the bytecode
- Code size
- 23,441 bytes
- Owner
- 0xc6cf9Db04887e11Ce04FBBE8A49498140B9CeE82
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 3
- 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.
- 0xf2fde38b transferOwnership
- 0xf62ab668 unknown
- 0xfcd8f5b9 unknown
- 0xf0f48a67 unknown
- 0xf1e6cd24 unknown
- 0xe8d89ece getPoolFeeConfig
- 0xef0560d7 unknown
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- 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.
0xefc19b20
unknown
0xe30c3978 pendingOwner0xe8578107 unknown0xdc98354e beforeInitialize0xe1a45218 BPS_DENOMINATOR0xe1b4af69 afterDonate0xd9caed12 withdraw0xdc4c90d3 poolManager0xcc60c132 feeOverride0xce92ee92 unknown0xcf2b0cac unknown0xd8af1208 unknown0xc3990fc2 unknown0xc4e833ce getHookPermissions0xc5117d93 unknown0xbf862391 botFee0xc0447742 unknown0xb6852851 unknown0xb6a8b0fa beforeDonate0xb7547be1 unknown0xb40d4551 unknown0xb47b2fb1 afterSwap0xa8f4d212 unknown0xa954aa80 unknown0xb28a0da0 unknown0xa3ead87d unknown0xa3f45c64 unknown0x9a50c628 tierOneFee0x9cc1fd64 unknown0x9d951b3b tierThreeFee0x9f063efc afterAddLiquidity0x896ea61b unknown0x8cff711b unknown0x8da5cb5b owner0x81ba111c unknown0x88457c34 poolFeeOverride0x7740e26a unknown0x79ba5097 acceptOwnership0x7e4b28b1 unknown0x715018a6 renounceOwnership0x72359bd3 unknown0x5fbbc0d2 getFeeConfig0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x5c975abb paused0x5d2988eb unknown0x5818c0f0 unknown0x58543db7 unknown0x58ad48fd unknown0x5a6c72d0 defaultFee0x535bcded unknown0x5748e06c unknown0x575e24b4 beforeSwap0x40542878 floorFee0x4dad7724 unknown0x292b0179 unknown0x2b6ad0e8 setFeeOverride0x2d398609 unknown0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x162080cf unknown0x16c38b3c setPaused0x1e36385b getPolicyConfig0x14724809 unknown0x14e048ba FEE_CAP0x08ac6289 tierTwoFee0x096d711f unknown0x0cf29b75 unknown0x0f928a79 unknown