Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x8b938d52b2c32532ba764c5c8b81c58b98a7c088 on Ethereum · Custom pricing
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
This hook runs custom logic before each swap and takes currency from the pool through a return delta, but without verified source it is not possible to confirm which trades pay more or less.
How it works step by step
- Implements beforeSwap, which runs before each swap on pools using this hook and can return a delta that adjusts the swap amounts.
- Calls take(address,address,uint256) on the PoolManager, so the hook moves pool currency out of the pool during the swap.
- Reads and writes two storage slots (slot 0 written and slot 1 read and written) inside the swap path, suggesting a counter or accumulated state that is updated on each swap.
- Bytecode is small (994 bytes) and contains a Panic(uint256) revert path, consistent with checked arithmetic on the stored values.
- Swap behaviour
- Before each swap the hook runs its beforeSwap logic, takes currency from the pool through PoolManager.take and returns a delta that changes the swap amounts; which trades pay more or less cannot be determined from decoded bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee; no fee-setting selector was observed, though the hook's return delta may effectively alter what the swapper receives or pays.
- Owner & admin controls
- No admin controls found.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic and return a delta before each swap; beforeSwapReturnDelta lets that delta modify the swap amounts and causes the hook to take currency.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: No owner or admin selectors were observed, so privileged control cannot be confirmed; any control would have to be embedded in the unverified logic.
Risk to user funds: The hook can take currency from the pool through PoolManager.take and alter swap amounts via its return delta, so it can affect funds flowing through pools that use it.
Security findings
- [high] Hook moves pool currency via return delta: The beforeSwap path calls take on the PoolManager and has beforeSwapReturnDelta enabled, so the hook can take or redirect tokens during swaps. Without source the exact amounts and conditions cannot be verified.
- [medium] Unverified source: No verified source is available, so the logic behind the storage writes and the take amounts cannot be confirmed from the decoded bytecode.
- [info] Stateful swap path: Storage slots 0 and 1 are read and written during beforeSwap, indicating per-swap state updates whose purpose is unknown.
Contract details
- Verified source
- No
- Bytecode size
- 994 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / SKYLINE (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today