Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,172,754
0x7449…8880
The eight checks
6 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 record6 pools over 37 days.
Measured at block 93,172,754. 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 / microduck
fee dynamic, now 0%- Swap USDG → microduckno liquidity at the current price
- Swap microduck → USDGno liquidity at the current price
- Add, then remove liquiditydeposit refused: error 0x8c146784
pool 0x6ef3c43ab130439c6770a97c81f296ff9310a0f8456004a7a3b8bdeb84f06c20
Read from the bytecode
- Code size
- 13,745 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.
- 0xf2fde38b transferOwnership
- 0xf94199a6 paramsOf
- 0xfb2a638d previewFee
- 0xedb7a6fa defaults
- 0xf1b8a6ee unknown
- 0xe1b4af69 afterDonate
- 0xe30c3978
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.
pendingOwner
0xea70d701 unknown0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xc4e833ce getHookPermissions0xcf2c550c setSender0xd0603656 allowedOrigin0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0x999b93af quote0x9f063efc afterAddLiquidity0xa0fd3f7e poolParams0xa7d9605a unknown0x79ba5097 acceptOwnership0x89f3d834 unknown0x8da5cb5b owner0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x5a2aa891 unknown0x68cf2fad unknown0x6c2bbe7e afterRemoveLiquidity0x4bd8588b references0x575e24b4 beforeSwap0x37c4d730 unknown0x44990648 clearReference0x4a07b207 unknown0x259982e5 beforeAddLiquidity0x3363a4b0 unknown0x034b1a73 setOrigin0x0361b39c allowedSender0x16ff920e openPool0x21d0ee70 beforeRemoveLiquidity