Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,975,695
0x56Fe…70c0
The eight checks
20 pools use this hook, the first one 33 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.
- 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 0xa79C7Bd36483cBc6457bb23a0048a005e0136320. Owner-style functions: transferOwnership, setAuthenticatedRouter, setBuybackExecutor, setAutoBuybackEnabled, 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 record20 pools over 32 days.
Measured at block 92,975,695. 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.
DFGDF / LOT-Rasta
fee dynamic, now 0%- Swap DFGDF → LOT-Rastano liquidity at the current price
- Swap LOT-Rasta → DFGDFno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0x2f8f160bc6118a46b972ba25b664aaebc8f4abd4823a441a736e1f33ec8995c5
Read from the bytecode
- Code size
- 12,973 bytes
- Owner
- 0xa79C7Bd36483cBc6457bb23a0048a005e0136320
- 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.
- 0xf2fde38b transferOwnership
- 0xf3f688b1 autoBuybackStatus
- 0xf5fe091c EARLY_BUY_CAP
- 0xf90f2758 earlyBuyChargedTo
- 0xe1b4af69 afterDonate
- 0xe30c3978 pendingOwner
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.
0xe6df6242
buybackLocker
0xec2a7610 scheduleOf0xcd891623 snipeFee0xd43012c0 isAuthenticatedRouter0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xc9eb012c EARLY_CAP_BPS0xcaa93ee8 currentFee0xcb28cbc5 prepareLaunch0xc079901c MAX_DECAY_BLOCKS0xc4e833ce getHookPermissions0xc889264c earlyBought0xc9978161 earlyWindowEndsAt0xb6a8b0fa beforeDonate0xbccbe5e2 AUTO_GAS_HEADROOM0xbd8e62d6 ARB_SYS0xa1285ce4 AUTO_GAS_MIN_BUDGET0xa67d13d5 prepareOpeningBuy0xb1ccf526 initializedAtBlock0xb47b2fb1 afterSwap0x965d340c openingBuyUsed0x980e567d setAuthenticatedRouter0x9f063efc afterAddLiquidity0x8b4c5b4c buybackExecutor0x8b85902b l2BlockNumber0x8da5cb5b owner0x9649adb3 setBuybackExecutor0x6fa0f585 lastAutoAt0x6fe7e6eb afterInitialize0x715018a6 renounceOwnership0x79ba5097 acceptOwnership0x536dac9b launchFactory0x575e24b4 beforeSwap0x6c2bbe7e afterRemoveLiquidity0x6ef25c3a baseFee0x4411a244 EARLY_WINDOW0x4b7478b9 openingBuyOf0x4fbada35 AUTO_GAS_CAP0x32cb7944 MIN_PERMANENT_FEE0x342b6215 launchedAtTime0x39039980 setAutoBuybackEnabled0x3bb8a8d4 autoBuybackEnabled0x259982e5 beforeAddLiquidity0x2f50a572 MAX_SNIPE_FEE0x30f38cfb setLaunchFactory0x1bc1e92f AUTO_GAS_FLOOR0x1f9f2f45 MAX_PERMANENT_FEE0x21d0ee70 beforeRemoveLiquidity0x23c10d13 earlyBuyRemaining0x09093976 setFeeParams0x0ba0e2de ORIGINAL_SUPPLY0x1bbb6248 decayBlocks