Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,268,234
0xBe50…D040
The eight checks
4 pools use this hook, the first one 59 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.
- 03pass
LPs can get outLiquidity added and removed in the same block came back whole.
- 04pass
The fee is the feeA fixed fee of 0.10%, written in the pool key.
- 05caution
No one holds the switchOwned by 0xa6e93fa3Fb8fF2E3470BDe6c9929b7900d6cC0dd. Owner-style functions: setExecutor, setPoolEnabled, paused, setKeeperBps, setMinProfit, setTreasury.
- 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 record4 pools over 59 days.
Measured at block 93,268,234. 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 & 0x3fff0x1040 · 01000001000000
- 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 / GAPBACK
fee 0.10%- Swap ETH → GAPBACKno liquidity at the current price
- Swap GAPBACK → ETHno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0x7aa75c2f73f3c81f36608b793aafbe3624cb7940e3c8321fde5ff3fe52fd9f09
Read from the bytecode
- Code size
- 10,905 bytes
- Owner
- 0xa6e93fa3Fb8fF2E3470BDe6c9929b7900d6cC0dd
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 2
- 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.
- 0x047dbeb8 gasCap
- 0x0ef337f6 splitFor
- 0x11179d7c unknown
- 0x170cba5c unknown
- 0x1c3c0ea8 setExecutor
- 0x1e57bc4a quotePriority
- 0x1ea38067 unknown
bit 4
After donate
bit 3Before swap returns deltabit 2After swap returns deltabit 1After add returns deltabit 0After remove returns delta- After initialize. Runs once, right after a pool is created.
- After swap. Runs after every swap.
0x21d0ee70
beforeRemoveLiquidity
0x259982e5 beforeAddLiquidity0x25f0f118 unknown0x2d9997b0 unknown0x4000072e setPoolEnabled0x4545ea04 unknown0x49e4438b unknown0x4c74986f unknown0x4e0bcc09 unknown0x4f42798c unknown0x4fb6f707 unknown0x575e24b4 beforeSwap0x5c975abb paused0x61d027b3 treasury0x62d53b57 unknown0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x79ba5097 acceptOwnership0x8da5cb5b owner0x91dd7346 unlockCallback0x96150c92 unknown0x9a331b18 setKeeperBps0x9aff53ee defaultSplit0x9b3f4617 unknown0x9ef609e1 setMinProfit0x9f063efc afterAddLiquidity0xa71a0e40 groupOf0xaaabf572 unknown0xaca9f1ed minProfit0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0xbdf2199b unknown0xc34c08e5 executor0xc46da1a7 unknown0xc4e833ce getHookPermissions0xd50ca4b4 keeperBps0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xe13a690d unknown0xe1b4af69 afterDonate0xe30c3978 pendingOwner0xf0f44260 setTreasury0xf2fde38b transferOwnership0xf7df7bcc unknown