Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x3b88b5561e453d34f4f2a276838015c874e68088 on Ethereum · Custom pricing
- Volume (24h)
- $4.46
- Value locked (TVL)
- $0
- All-time volume
- $4.46
- Pools using this hook
- 1
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 1
What it does
An unverified, non-upgradeable hook that can take an unknown cut of swaps before they execute, so traders may pay more than the pool fee, while LPs can always add 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, meaning it can take part of the swap input or supply part of the output itself.
- Calls the PoolManager's take function, which pulls tokens out of the pool's accounting during a swap, likely as a fee or for custom settlement.
- Keeps internal counters that are updated on each swap and exposes one read-only view of that data.
- Never touches liquidity adds or withdrawals, so LPs can always withdraw.
- Swap behaviour
- Before each swap the hook can alter the amounts the trader pays or receives and can pull tokens from the PoolManager to a recipient. The exact size of any deduction cannot be confirmed from unverified bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- The hook appears able to take a cut of swaps through its return delta and take call, but the exact percentage, any cap, and the recipient are unknown from bytecode alone. The pool's normal LP fee still applies.
- Owner & admin controls
- No owner or admin setter functions were found in the bytecode; only the swap callback and one read-only function are exposed.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates internal counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts, for example by taking a fee from the input.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No admin keys or upgrade path were found; the contract is a direct, non-upgradeable deployment. Its behaviour is fixed but unverified.
Risk to user funds: Traders' swap amounts can be reduced by an unknown amount via the before-swap delta and take call. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Unverified swap amount modification: The hook can alter swap amounts and withdraw tokens through the PoolManager during swaps, but without source code the size of any deduction and its limits cannot be verified.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled in the hook address, so it can never block or charge LP withdrawals.
- [info] No visible admin functions: Only the swap callback and one view function are dispatched, and it is not a proxy, so its behaviour appears fixed.
Contract details
- Verified source
- No
- Bytecode size
- 1,510 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / MADANG (1.00% fee) — 24h volume $4.46, TVL $0, 1 swaps today