Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,999,623
0x1Db5…6AC0
The eight checks
15 pools use this hook, the first one 98 d ago.
- 01caution
Permissions that touch your moneyThe address enables before remove liquidity. The hook is allowed to take; the next two checks measure whether it does.
- 02caution
What it takes from a swapIt takes 3.00% of each swap on top of the pool fee.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 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 setVolumeBotWallets, setGlobalExemption.
- 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 record15 pools over 97 days.
Measured at block 92,999,623. 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 & 0x3fff0x2ac0 · 10101011000000
- 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.
ETH / dvbuytstv4
fee dynamic, now 0%- Swap ETH → dvbuytstv4hook takes 3.00%
- Swap dvbuytstv4 → ETHhook takes 3.00%
- Add, then remove liquiditycame back whole
pool 0x2c78472aa161c80f4632be72f3d31f1eb1d57c2a08e7311d0ad480527317082e
ETH / asdfgdher5
fee dynamic, now 0%- Swap ETH → asdfgdher5hook takes 3.00%
- Swap asdfgdher5 → ETHhook takes 3.00%
- Add, then remove liquiditycame back whole
pool 0x98b747a4a811025f1d1e6196399169cd10f13884788ac04b2b704c71fb937282
Read from the bytecode
- Code size
- 10,039 bytes
- Owner
- none found
- 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.
- 0x026f6303 getCurrentTradingConfig
- 0x0f6d047c isVolumeBotWallet
- 0x21d0ee70 beforeRemoveLiquidity
- 0x249d39e9 BPS
- 0x259982e5 beforeAddLiquidity
- 0x30a6bf21 setVolumeBotWallets
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 remove liquidity. Can refuse a withdrawal. LPs may not get out.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
0x3d02be5b getVolumeBotWallets0x5061ab5d getPoolIdForToken0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x75f6d07f globalExemptions0x777841b5 getVolumeBotWalletCount0x79502c55 config0x7e104fb8 DEV_BUY_SECONDS0x8bf5928e sniperTaxBps0x902d55a5 TOTAL_SUPPLY0x9f063efc afterAddLiquidity0xad091230 launches0xb33fe011 userBalances0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbd2670b5 getCurrentMcap0xc4e833ce getHookPermissions0xd227dcfc SNIPER_SECONDS0xd587d363 tokenToPoolId0xd5cb019c launchMode0xdb05f184 DEV_BUY_CAP_BPS0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xdf7e6e38 activationInProgress0xe1b4af69 afterDonate0xed2e0836 setGlobalExemption0xef14d80e registerLaunch0xf7722626 devBuyAmount