Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,146,476
0x7fbD…E088
The eight checks
6 pools use this hook, the first one 75 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 claimEthRewards, claimableEthRewards, claimableDeveloperEthRewards, claimDeveloperEthRewards, collectFeesForRevenue, transferFrom.
- 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 74 days.
Measured at block 93,146,476. 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.
RWI / MULTITEST
fee 1%- Swap RWI → MULTITESTnothing taken
- Swap MULTITEST → RWInothing taken
- Add, then remove liquiditycame back whole
pool 0x871a7bc19382a8195687fc9e3c777147a2cb3b4b394dc6352b8f3cd72750535c
Read from the bytecode
- Code size
- 21,412 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 19
- 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.
- 0x03bb72e5 convertibleQuoteRewards
- 0x0a1aade9 poolKey
- 0x11a5143b UNISWAP_V4_STATE_VIEW
- 0x1816dac3 positionByPool
- 0x185870f9 developerWallet
- 0x249d39e9 BPS
- 0x2b73b0da DEVELOPMENT_WALLET
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
0x35d795ae pons0x35fe5230 VOLATILE_CONVERSION_FEE0x3fc8cef3 weth0x402a27ed claimEthRewards0x4c4a3c25 stateView0x56f05688 WETH_USDG_ORACLE_POOL0x575e24b4 beforeSwap0x57ae3a9f USDG0x5b3eb51a RWI_WETH_ORACLE_POOL0x6bd6a934 launchPools0x708666ad liquidityVault0x7178abbe claimableEthRewards0x737f751f ALL_HOOK_FLAGS_MASK0x7381527f POOL_TICK_SPACING0x78a9077c UNISWAP_V4_POOL_MANAGER0x79f2c0c2 tokenFeeInventory0x80fa02f7 ROBINHOOD_CHAIN_ID0x86b1bdd1 protectedOracle0x8b5e3091 claimableDeveloperEthRewards0x91dd7346 unlockCallback0x99fbab88 positions0x9f12d4d1 launch0xac4e4054 REQUIRED_HOOK_FLAGS0xad5c4648 WETH0xb8f763d3 PONS_WETH_ORACLE_POOL0xbf76e944 DEVELOPER_FEE_BPS0xc0d73884 rwi0xc31c9c07 swapRouter0xc5c54733 claimDeveloperEthRewards0xd2cf107e OTHER_CREATOR_FEE_BPS0xd4031a14 nextPositionTokenId0xdc4b495a tokenPairMask0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdd1b9c4a POOL_FEE0xde569748 ALL_PAIR_MASK0xe4f72a2e USDG_CONVERSION_FEE0xe6104f73 PONS0xebf28aa4 convertQuoteRewardsToEth0xee9b8288 collectFeesForRevenue0xf0e35091 RWI_CREATOR_FEE_BPS0xf5b91b7b usdg0xf6abcd6b RWI0xf73e5aab UNISWAP_V3_FACTORY0xfb93b7af AUTO_COMPOUND_FEE_BPS0xfeb29494 SWAP_ROUTER_020x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom0x313ce567 decimals0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xc969943e FIXED_SUPPLY0xdd62ed3e allowance