Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,174,422
0x7162…E880
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 0xB6DBE48513f9eD41B2de29ee89112a52940931E1. Owner-style functions: transferOwnership, setRegistrar, setWhitelisted, setWhitelistedBatch.
- 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,174,422. 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 & 0x3fff0x2880 · 10100010000000
- 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 / NEOPETS
fee dynamic, now 0%- Swap USDG → NEOPETSno liquidity at the current price
- Swap NEOPETS → USDGno liquidity at the current price
- Add, then remove liquiditydeposit refused: error 0xe15f9365
pool 0x390806b73d7307c68f46eacd2668703624101fd950133ff0e3e093f5f9cac9b7
Read from the bytecode
- Code size
- 9,983 bytes
- Owner
- 0xB6DBE48513f9eD41B2de29ee89112a52940931E1
- 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.
- 0xed2a2f9d TOTAL_WEIGHT
- 0xf2fde38b transferOwnership
- 0xfaab9d39 setRegistrar
- 0xe1b4af69 afterDonate
- 0xe30c3978 pendingOwner
- 0xd588df3c unknown
- 0xdc4c90d3
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 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.
poolManager
0xdc98354e beforeInitialize0xc45e6b9d unknown0xd280b457 unknown0x9f063efc afterAddLiquidity0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0x8da5cb5b owner0x9281aa0b setWhitelisted0x75fbae8e unknown0x76a3cf0b unknown0x791b98bc positionManager0x79ba5097 acceptOwnership0x6fe7e6eb afterInitialize0x71236a84 unknown0x754b377c IMPLEMENTATION_VERSION0x62d0609a poolSettings0x6c2bbe7e afterRemoveLiquidity0x4db9deb5 unknown0x4eba8678 feeConfigVersion0x53e579bf poolId0x575e24b4 beforeSwap0x2f6707e9 setWhitelistedBatch0x3af32abf isWhitelisted0x4166af4c unknown0x2b20e397 registrar0x2b3c3034 unknown0x05a3f7c9 unknown0x1e5eb1d0 feeConfig0x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity