Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 92,972,620
0x24f9…68cc
The eight checks
28 pools use this hook, the first one 88 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.00% 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 switchOwned by 0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd. Owner-style functions: withdrawPlatformFees, setAntiSnipeDefaults, claimRefund, claimCreatorFees, setFeeRecipient, collectPoolFees.
- 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 record28 pools over 87 days.
Measured at block 92,972,620. 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.
SLV / DRKSLV
fee dynamic, now 0%- Swap SLV → DRKSLVhook takes 1.00%
- Swap DRKSLV → SLVno liquidity above the price
- Add, then remove liquiditydeposit refused: curve phase
pool 0x337dc967e846b8653eaeee51f3737567c7308b9b95bcaa676c70631b47f1ef0e
Read from the bytecode
- Code size
- 39,157 bytes
- Owner
- 0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd
- Proxy
- no
- DELEGATECALL
- absent
- SELFDESTRUCT
- absent
- Outside calls
- 43
- 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.
- 0xec3889b5 withdrawPlatformFees
- 0xedff74d0 GRAD_RAISE
- 0xf07e96b3 lastActivity
- 0xfcba2b29 lockFeeRecipient
- 0xffc8cc53 SQRT_START_C0
- 0xdf1b80ae lockFeeRecipientTo
- 0xdf7787a4 MAX_WALLET
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.
0xdfcee7d2 feeRecipientOf0xe1b4af69 afterDonate0xe23801f5 CTO_VETO_DELAY0xd49ed0bc SQRT_GRAD_C00xd98b2f5c quoteSell0xda725cc6 curveParamsOf0xdc4c90d3 poolManager0xdc98354e beforeInitialize0xc27ca318 ctoProposals0xc38bd15c setAntiSnipeDefaults0xc4e833ce getHookPermissions0xced31285 GRADUATED_LP_FEE0xb5545a3c claimRefund0xb6a8b0fa beforeDonate0xbc3da535 refunds0xbf333f2c FEE_BPS0xc1db1b62 antiSnipePeakBps0xaeb33de3 TICK_LOWER_Q00xaf73cc42 ANTI_SNIPE_MAX_BPS0xb47b2fb1 afterSwap0xb5217bb4 pools0x9016af09 creatorFees0x902d55a5 TOTAL_SUPPLY0x91dd7346 unlockCallback0x988b1fa7 poolOf0x9f063efc afterAddLiquidity0x800939ab CTO_INACTIVITY0x847a74ad antiSnipeWindow0x8652edf9 poolKeyOf0x8da5cb5b owner0x6c2bbe7e afterRemoveLiquidity0x6fe7e6eb afterInitialize0x741965d8 executeCtoRedirect0x78892cea QUOTE_TOKEN0x7f3ae11d TICK_UPPER_Q00x575e24b4 beforeSwap0x5c16e15e lastClaim0x670171fd LP_SUPPLY0x678fd289 coinCount0x3cfc7ede PAIR_COOLDOWN0x40c23cc1 SQRT_START_Q00x46ca626b TICK_SPACING0x4af43955 feeRecipientLocked0x5654d75a pairLastLaunch0x31e658a5 state0x32f0e8c0 FULL_TICK_UPPER0x34df03ed L_CURVE_Q00x351fee46 claimCreatorFees0x1e4c7292 CURVE_SUPPLY0x1ffb51aa L_CURVE_C00x21d0ee70 beforeRemoveLiquidity0x259982e5 beforeAddLiquidity0x270401cb setFeeRecipient0x14b406cb antiSnipeEnabled0x150e89cb QUOTE_DECIMALS0x17de3c7e collectPoolFees0x194a4e7e platformFees0x0d7a94f6 quoteBuy0x0ed56ffe ANTI_SNIPE_MAX_WINDOW0x11b288ad proposeCtoRedirect0x13560cac allCoins0x13af4035 setOwner0x0200737f GRADUATION_GAS0x03d60c01 FULL_TICK_LOWER0x0b33acd6 create0x313ce567 decimals0x70a08231 balanceOf0x95d89b41 symbol0xa9059cbb transfer0xdd62ed3e allowance0x06fdde03 name0x095ea7b3 approve0x18160ddd totalSupply0x23b872dd transferFrom