Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,144,198
0x0Fb4…6088
The eight checks
6 pools use this hook, the first one 78 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 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 claimableEthUsdValueE18, claimEthRewards, claimableEthRewards, collectFeesForRevenue, 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 record6 pools over 78 days.
Measured at block 93,144,198. 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 & 0x3fff0x2088 · 10000010001000
- 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.
RWITEST / RWI
fee 1%- Swap RWITEST → RWInothing taken
- Swap RWI → RWITESTnothing taken
- Add, then remove liquiditycame back whole
pool 0x4ee2e8202641c9ac5adbed383ef87a04569f0d7be5a2accbc6af9fb81fce8fad
LOWIS / RWI
fee 1%- Swap LOWIS → RWIno liquidity below the price
- Swap RWI → LOWISnothing taken
- Add, then remove liquiditycame back whole
pool 0x9211ad01767d03d88b08cf3a09fa3c64148ad23bf1affeaaf3e84ba10b35993d
Read from the bytecode
- Code size
- 24,466 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 21
- 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
- 0x25dc9531 claimableEthUsdValueE18
- 0x25df9f40 positionCreators
- 0x2acbe24e INITIAL_RWI_LIQUIDITY
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.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
0x323d7d6e
TARGET_MARKET_CAP_USD_E18
0x359100b8 positionTokens0x36f46916 ethUsdPriceE180x3e629544 WETH_USDG_ORACLE_FEE0x3f008fb8 CREATOR_LP_FEE_SHARE_BPS0x3fc8cef3 weth0x402a27ed claimEthRewards0x43b30d99 TOKEN_SUPPLY_WHOLE0x46fcb1ce POOL_ALLOCATION_BPS0x4c4a3c25 stateView0x55d1cb60 poolKey0x563d08f2 MIN_WETH_USDG_HARMONIC_LIQUIDITY0x56f05688 WETH_USDG_ORACLE_POOL0x575e24b4 beforeSwap0x57ae3a9f USDG0x5b3eb51a RWI_WETH_ORACLE_POOL0x5b549182 uniswapV3Factory0x5eb730c9 MIN_RWI_WETH_HARMONIC_LIQUIDITY0x6a529ac6 UNISWAP_V4_UNIVERSAL_ROUTER0x7178abbe claimableEthRewards0x737f751f ALL_HOOK_FLAGS_MASK0x7381527f POOL_TICK_SPACING0x78a9077c UNISWAP_V4_POOL_MANAGER0x79f2c0c2 tokenFeeInventory0x80fa02f7 ROBINHOOD_CHAIN_ID0x838a98a6 ORACLE_TWAP_WINDOW0x8a4b2dd5 TOKEN_ADDRESS_SEARCH_ATTEMPTS0x8c9283d2 convertibleRwiRewards0x91dd7346 unlockCallback0x9d79d832 launch0xa36f5109 MAX_LOCKED_TOKEN_DUST0xac4e4054 REQUIRED_HOOK_FLAGS0xad5c4648 WETH0xb0135138 MAX_RWI_WETH_SPOT_TWAP_DEVIATION0xb4ad7123 rwiWethPool0xb83ef213 convertRwiRewardsToEth0xc0d73884 rwi0xc31c9c07 swapRouter0xd4031a14 nextPositionTokenId0xd47f3bc0 LIQUIDITY_PERMANENTLY_LOCKED0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xea162f1f launchPricing0xee9b8288 collectFeesForRevenue0xf5b91b7b usdg0xf6abcd6b RWI0xf73e5aab UNISWAP_V3_FACTORY0xfeb29494 SWAP_ROUTER_020x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xc969943e FIXED_SUPPLY0xdd62ed3e allowance