Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,424,399
0xB725…E000
The eight checks
3 pools use this hook, the first one 79 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 swapA swap through it pays the pool fee and nothing else.
- 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 switchNo owner() but it has claimFeesInEth, transferFrom, transfer.
- 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 record3 pools over 78 days.
Measured at block 93,424,399. 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 & 0x3fff0x2000 · 10000000000000
- 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.
V4TEST3 / RWI
fee 1%- Swap V4TEST3 → RWIno liquidity below the price
- Swap RWI → V4TEST3nothing taken
- Add, then remove liquiditycame back whole
pool 0xc9caf9b628f2e9e58cd6e540a1a4a13018ba781f41c252c67061c053bb724b4a
RWIF / RWI
fee 1%- Swap RWIF → RWInothing taken
- Swap RWI → RWIFnothing taken
- Add, then remove liquiditycame back whole
pool 0xf96b65ffd61e02ae7c3d74e021dacc15a897f3ab0a2a94c3973852175fd6dde6
Read from the bytecode
- Code size
- 20,210 bytes
- Owner
- none found
- 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.
- 0x11a5143b UNISWAP_V4_STATE_VIEW
- 0x1871b646 wethUsdgPool
- 0x1f2d8550 launches
- 0x249d39e9 BPS
- 0x25df9f40 positionCreators
- 0x2acbe24e INITIAL_RWI_LIQUIDITY
- 0x323d7d6e TARGET_MARKET_CAP_USD_E18
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.
0x359100b8
positionTokens
0x3e629544 WETH_USDG_ORACLE_FEE0x3f008fb8 CREATOR_LP_FEE_SHARE_BPS0x3fc8cef3 weth0x43b30d99 TOKEN_SUPPLY_WHOLE0x46fcb1ce POOL_ALLOCATION_BPS0x50d84873 claimFeesInEth0x55d1cb60 poolKey0x563d08f2 MIN_WETH_USDG_HARMONIC_LIQUIDITY0x56f05688 WETH_USDG_ORACLE_POOL0x57ae3a9f USDG0x5b3eb51a RWI_WETH_ORACLE_POOL0x5b549182 uniswapV3Factory0x5eb730c9 MIN_RWI_WETH_HARMONIC_LIQUIDITY0x61b8ec37 launch0x6a529ac6 UNISWAP_V4_UNIVERSAL_ROUTER0x737f751f ALL_HOOK_FLAGS_MASK0x7381527f POOL_TICK_SPACING0x78a9077c UNISWAP_V4_POOL_MANAGER0x80fa02f7 ROBINHOOD_CHAIN_ID0x838a98a6 ORACLE_TWAP_WINDOW0x8a4b2dd5 TOKEN_ADDRESS_SEARCH_ATTEMPTS0x91dd7346 unlockCallback0xa36f5109 MAX_LOCKED_TOKEN_DUST0xac4e4054 REQUIRED_HOOK_FLAGS0xad5c4648 WETH0xb0135138 MAX_RWI_WETH_SPOT_TWAP_DEVIATION0xb4ad7123 rwiWethPool0xc0d73884 rwi0xc31c9c07 swapRouter0xd4031a14 nextPositionTokenId0xd47f3bc0 LIQUIDITY_PERMANENTLY_LOCKED0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xea162f1f launchPricing0xf5b91b7b usdg0xf6abcd6b RWI0xf73e5aab UNISWAP_V3_FACTORY0xfeb29494 SWAP_ROUTER_020x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xc969943e FIXED_SUPPLY0xdd62ed3e allowance