Reading the hook.
The address, the bytecode, then a swap each way through its pool. A few seconds.
v4 hook · Robinhood Chain · block 93,089,369
0x4bfE…6080
The eight checks
11 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 switchNo owner() but it has setHolidays, setFeeOverride, grantRole, setHoliday.
- 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 record11 pools over 32 days.
Measured at block 93,089,369. 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 & 0x3fff0x2080 · 10000010000000
- 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.
USDG / UBIK
fee dynamic, now 0%- Swap USDG → UBIKno liquidity at the current price
- Swap UBIK → USDGno liquidity at the current price
- Add, then remove liquiditycame back whole
pool 0x5a3d48c68376909236fc82d9138e5957d9799342de6a2e6440abd74a4ec4a8ec
Read from the bytecode
- Code size
- 10,095 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.
- 0xd652be66 clearFeeOverride
- 0xdc4c90d3 poolManager
- 0xdc98354e beforeInitialize
- 0xf50b41dd configurePool
- 0xffa602ab sessionState
- 0xccc57490 GOVERNOR_ROLE
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 swap. Runs before every swap. On a dynamic-fee pool it can set the fee each time.
0xceb714cd
DEFAULT_BASE_FEE
0xcfcb04e7 setHolidays0xd547741f revokeRole0x8ce810a4 setFeeOverride0x91d14854 hasRole0xa217fddf DEFAULT_ADMIN_ROLE0xc4e833ce getHookPermissions0x58be26c1 configureCalendar0x59db1e65 DEFAULT_MAX_TTL0x5dd9eb11 poolConfig0x6db70b1a ABSOLUTE_MAX_TTL0x3c2f373f ABSOLUTE_MAX_FEE0x3f7c0347 configureDirectional0x491e0cea calendarOf0x575e24b4 beforeSwap0x364bc15a KEEPER_ROLE0x36568abe renounceRole0x38887628 currentFee0x3990483b DEFAULT_FLOOR0x248a9ca3 getRoleAdmin0x24ea54f4 GUARDIAN_ROLE0x2f2ff15d grantRole0x3434223c DEFAULT_CAP0x01ffc9a7 supportsInterface0x0c416c65 isHoliday0x104f78ea overrideActive0x1704a667 setHoliday