Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,983,758
0x9918…c880
The eight checks
34 pools use this hook, the first one 38 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02n/a
What it takes from a swapNo pool with liquidity to swap through yet.
- 03n/a
LPs can get outClosed to outside LPs: only the hook's own liquidity is in the pool.
- 04caution
The fee is the feeIts pools use a dynamic fee that the hook sets before every swap. It stands at 0% now and can change.
- 05caution
No one holds the switchOwned by 0x0feB08fcF34F5c0e270261bC79BaFC0F8eb87f98. Owner-style functions: transferOwnership, setSender, setOrigin.
- 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 record34 pools over 37 days.
Measured at block 92,983,758. 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 & 0x3fff0x0880 · 00100010000000
- 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.
USDG / URANUS
fee dynamic, now 0%- Swap USDG → URANUSno liquidity at the current price
- Swap URANUS → USDGno liquidity at the current price
- Add, then remove liquiditydeposit refused: error 0x8c146784
pool 0x3928177aace8700ed39fbc9a90c797116ec46d23c3f123b8e16a89489d3fb182
Read from the bytecode
- Code size
- 15,145 bytes
- Owner
- 0x0feB08fcF34F5c0e270261bC79BaFC0F8eb87f98
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 0
- 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.
- 0xf94199a6 paramsOf
- 0xfb2a638d previewFee
- 0xffa1ad74 VERSION
- 0xf25b0b12 unknown
- 0xf2fde38b transferOwnership
- 0xea70d701 unknown
- 0xedb7a6fa defaults
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- Before add liquidity. Can refuse a deposit, or only let some addresses provide liquidity.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
0xf1b8a6ee
unknown
0xe30c3978 pendingOwner0xe8f61b7b unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe1b4af69 afterDonate0xcf2c550c setSender0xd0603656 allowedOrigin0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xa0fd3f7e poolParams0xa7d9605a unknown0x8da5cb5b owner0x999b93af quote0x9f063efc afterAddLiquidity0x79ba5097 acceptOwnership0x89f3d834 unknown0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x575e24b4 beforeSwap0x68cf2fad unknown0x37c4d730 unknown0x44990648 clearReference0x4bd8588b references0x27053f12 unknown0x3363a4b0 unknown0x16ff920e openPool0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x034b1a73 setOrigin0x0361b39c allowedSender