Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,420,736
0xDBA0…E8Cc
The eight checks
3 pools use this hook, the first one 22 d ago.
- 01caution
Permissions that touch your moneyThe address enables before swap returns delta, after swap returns delta. The hook is allowed to take; the next two checks measure whether it does.
- 02pass
What it takes from a swapIt takes 1% on top of the pool fee.
- 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 switchNo owner() but it has claimReferral.
- 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 record3 pools over 22 days.
Measured at block 93,420,736. 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 & 0x3fff0x28cc · 10100011001100
- 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.
WETH / RATCHET
fee dynamic, now 0%- Swap WETH → RATCHEThook takes 1%
- Swap RATCHET → WETHhook takes 1%
- Add, then remove liquiditydeposit refused: NotLaunchpad
pool 0xc218b9a11d51c4cd8eebd89e55b4b1edea57e40585ae6532badeb4b903f33f99
NVDA / PIN
fee dynamic, now 0%- Swap NVDA → PINhook takes 1%
- Swap PIN → NVDAhook takes 1%
- Add, then remove liquiditydeposit refused: NotLaunchpad
pool 0x9f9566a3a5f8be03fa84501569249b6eeb89028a24b496614ac6be29bc107761
Read from the bytecode
- Code size
- 9,858 bytes
- Owner
- none found
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 4
- 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.
- 0x02669b52 launchpad
- 0x054e0cee TAX_START
- 0x09c70e6b OBS_CARDINALITY
- 0x108b885a unknown
- 0x11e5421f referralEarned
- 0x1e49bec6 feeFor
- 0x21d0ee70 beforeRemoveLiquidity
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.
- After swap. Runs after every swap.
- Before swap returns delta. Can take part of what you put into a swap, or change how much is swapped.
- After swap returns delta. Can take part of what you get out of every swap.
0x259982e5 beforeAddLiquidity0x26960cd2 SURGE_WINDOW0x47167075 LAUNCH_TAX_WINDOW0x47473b00 consult0x505c0b20 OBS_INTERVAL0x50d67cbe observation0x569f75eb maxBuyNow0x575e24b4 beforeSwap0x5c770bf3 GUARD_WINDOW0x5e2f0ed4 openTrading0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x755a97fc bindLaunchpad0x78203c8c unknown0x79039a3e MAX_BUY_TOKENS0x7c35be7a isOpen0x91dd7346 unlockCallback0x9f063efc afterAddLiquidity0xb47b2fb1 afterSwap0xb5217bb4 pools0xb6a8b0fa beforeDonate0xc4e833ce getHookPermissions0xcaa93ee8 currentFee0xd5f39488 deployer0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdebeb21a SURGE_PIPS_PER_TICK0xe1b4af69 afterDonate0xe61aee51 claimReferral0xe87be499 referralOwed0xf0f412b7 unknown