Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 94,303,495
0x8CBa…b0C0
The eight checks
3 pools use this hook, the first one 37 d ago.
- 01pass
Permissions that touch your moneyNone of the permissions that let a hook take from swaps or from LPs are switched on.
- 02caution
What it takes from a swapIt takes 4% 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 switchOwned by 0xF01c29725D8E8Dd09C0936Ca26c5C75d7CE77CD2. Owner-style functions: transferOwnership, setAuthenticatedRouter, setLaunchFactory, setFeeParams.
- 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 36 days.
Measured at block 94,303,495. 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 & 0x3fff0x30c0 · 11000011000000
- 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.
BRAVO / bGOOGLAMDAAPL
fee dynamic, now 0%- Swap BRAVO → bGOOGLAMDAAPLhook takes 2%
- Swap bGOOGLAMDAAPL → BRAVOhook takes 2.00%
- Add, then remove liquiditycame back whole
pool 0xf228e5090999d51a69c9b45e737368465eb303038b98144c85a36a74a05fd479
CHIPS / bSPYGOOGL
fee dynamic, now 0%- Swap CHIPS → bSPYGOOGLhook takes 4%
- Swap bSPYGOOGL → CHIPShook takes 4.00%
- Add, then remove liquiditycame back whole
pool 0x4aeb2cc7cc9e00e5298c0d1e0c70c19bcbb8389e7a2f78248049326ed127e4e3
Read from the bytecode
- Code size
- 9,273 bytes
- Owner
- 0xF01c29725D8E8Dd09C0936Ca26c5C75d7CE77CD2
- 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.
- 0xe1b4af69 afterDonate
- 0xe30c3978 pendingOwner
- 0xec2a7610 scheduleOf
- 0xf2fde38b transferOwnership
- 0xf5fe091c EARLY_BUY_CAP
- 0xf90f2758 earlyBuyChargedTo
- 0xcaa93ee8
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.
- After initialize. Runs once, right after a pool is created.
- Before swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
- After swap. Runs after every swap.
currentFee
0xcb28cbc5 prepareLaunch0xcd891623 snipeFee0xd43012c0 isAuthenticatedRouter0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xbd8e62d6 ARB_SYS0xc079901c MAX_DECAY_BLOCKS0xc4e833ce getHookPermissions0xc889264c earlyBought0xc9978161 earlyWindowEndsAt0xc9eb012c EARLY_CAP_BPS0x980e567d setAuthenticatedRouter0x9f063efc afterAddLiquidity0xa67d13d5 prepareOpeningBuy0xb1ccf526 initializedAtBlock0xb47b2fb1 afterSwap0xb6a8b0fa beforeDonate0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x79ba5097 acceptOwnership0x8b85902b l2BlockNumber0x8da5cb5b owner0x965d340c openingBuyUsed0x4411a244 EARLY_WINDOW0x4b7478b9 openingBuyOf0x536dac9b launchFactory0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6ef25c3a baseFee0x23c10d13 earlyBuyRemaining0x259982e5 beforeAddLiquidity0x2f50a572 MAX_SNIPE_FEE0x30f38cfb setLaunchFactory0x32cb7944 MIN_PERMANENT_FEE0x342b6215 launchedAtTime0x09093976 setFeeParams0x0ba0e2de ORIGINAL_SUPPLY0x1bbb6248 decayBlocks0x1f9f2f45 MAX_PERMANENT_FEE0x21d0ee70 beforeRemoveLiquidity