Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x097cfe0de2cecfb34d74a908c6dbff838e2c8088 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
A small, immutable, unverified hook that runs before each swap, tracks internal counters and can adjust swap amounts by an unknown amount, while LPs can always add and withdraw liquidity freely.
How it works step by step
- Runs custom logic before every swap in pools that use it.
- Has the permission to change swap amounts before the swap executes, for example by taking part of the input or supplying output itself.
- Keeps a few internal counters that are updated on each swap and can be read through a public view function.
- Has no admin functions and no liquidity callbacks, so LPs are never affected when adding or removing liquidity.
- Swap behaviour
- Before each swap the hook runs and updates internal counters, and it is allowed to adjust the swap amounts through a return delta. The exact adjustment cannot be confirmed from bytecode alone, and no outbound token-transfer calls were detected.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Uses the pool's static fee as far as can be seen. Any extra deduction through the swap delta cannot be quantified from the unverified bytecode.
- Owner & admin controls
- No admin controls found; the only functions are the swap callback and a read-only view.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change the swap's input or output amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No privileged keys were found, and the contract is not upgradeable.
Risk to user funds: Only swap amounts can be affected through the before-swap delta, and the size of any effect is unknown from bytecode. LP principal cannot be locked or drained by this hook.
Security findings
- [low] Unverified swap delta logic: The hook can change swap amounts before execution, but without source code the size or direction of any adjustment cannot be verified.
- [info] No admin or withdrawal controls: There are no owner functions and no remove-liquidity callbacks, so nobody can block LP withdrawals or change settings.
Contract details
- Verified source
- No
- Bytecode size
- 1,442 bytes
- Upgradeable proxy
- No
- Detected patterns
- return-delta
Pools using Likely custom pricing hook
- ETH / SWARM (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today