Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0xf583e1d9a947d5376121ca6ce8545d7f71900088 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 can adjust the settled amounts with a return delta, though the exact effect on which trades pay more or less cannot be determined from the decoded bytecode.
How it works step by step
- Implements beforeSwap with a return delta, so the hook can alter the amounts settled for a swap instead of letting the pool pricing alone decide them
- Dispatches a single state-changing swap entry point (beforeSwap) and one view function returning an address
- Reads and writes three storage slots (two uint256 values and one address-to-uint256 mapping) during the swap callback
- Does not expose any admin, pause or upgrade selectors in the decoded dispatch table
- Swap behaviour
- beforeSwap runs before each swap and can return a non-zero delta that changes the amounts settled, so the effective price a trader receives may differ from the pool's own price; the exact pricing rule 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 decoded, though the return delta may implicitly alter amounts paid.
- Owner & admin controls
- No admin controls found.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is enabled so the hook can run custom logic before each swap, and beforeSwapReturnDelta is enabled so it can adjust the swap's settled amounts.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: No owner, admin or upgrade functions were decoded, so no privileged key was identified; centralization cannot be assessed beyond the absence of visible controls.
Risk to user funds: Because the hook can return a delta on every swap, it can affect the amounts moved for traders and the pool; the precise extent cannot be determined without the source.
Security findings
- [high] Return delta can alter settled amounts: beforeSwapReturnDelta permits the hook to change the amounts a swap settles, meaning it can take or give tokens relative to the pool price on every swap.
- [medium] Unverified source: No verified source is available, so the exact pricing and token movement logic can only be inferred from selectors and storage access.
- [low] Storage writes in swap path: The beforeSwap selector writes to storage slots 0 and 2 on each swap, which indicates hook-maintained state that changes with trading activity.
Contract details
- Verified source
- No
- Bytecode size
- 1,578 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Likely custom pricing hook
- ETH / SHIFT (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today