Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0x0342e58a466b532f1298187c6a909637846a4088 on Base · 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 unverified hook runs before each swap and can adjust swap amounts and take some of the swapped tokens by an unknown amount, while LPs can deposit and withdraw freely.
How it works step by step
- Runs custom logic before every swap in pools that use it.
- Can change swap amounts using a before-swap return delta, and can pull tokens out of the pool manager with a take call.
- Keeps three internal counters that are updated on each swap and can be read through one public view function.
- Has no liquidity callbacks, so LPs add and withdraw liquidity normally.
- Swap behaviour
- Before each swap the hook can adjust how much is swapped and take tokens from the pool manager. That could work as a fee or a partial fill, but the exact amount cannot be confirmed from bytecode. Swaps may also revert on arithmetic errors.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- The hook may take a share of swap tokens through its before-swap delta and a take call. The exact percentage and who receives it cannot be determined from the unverified bytecode.
- Owner & admin controls
- No admin or owner functions were found in the bytecode. Only the swap callback and one read-only view function are exposed.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change swap input or output amounts and claim tokens.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No privileged keys or admin functions were found, and the contract is not a proxy. Its behaviour appears fixed at deployment.
Risk to user funds: The hook can take part of a trader's swap tokens through the before-swap delta, and the maximum amount is unknown from bytecode. LP principal cannot be locked or taken by this hook.
Security findings
- [medium] Unverified swap delta logic: The hook can change swap amounts and take tokens during swaps, but with no verified source the size of any deduction cannot be confirmed.
- [info] No admin functions: No owner or setter functions were found. Storage is only written by the swap callback.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block LPs from withdrawing or charge them on withdrawal.
Contract details
- Verified source
- No
- Bytecode size
- 1,269 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / FUSOR (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today