Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0xb4eb24bef4dbdadac4a922a793db64018cf04088 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 unverified hook likely skims a fixed fee from every swap before it executes and sends it out of the pool, while leaving LP deposits and withdrawals untouched.
How it works step by step
- Runs before every swap and can take a cut of the swap input using a return delta.
- Withdraws the taken tokens from the PoolManager to a destination via take().
- Reads two small fixed settings (likely fee rates or parameters) that no function can change after deployment.
- Tracks running counters (likely accumulated amounts or swap counts) that are updated on each swap.
- Exposes one read-only view function, likely reporting those counters or settings.
- Swap behaviour
- Before each swap the hook can adjust the swap amounts and pull tokens out of the PoolManager, most likely a fee skimmed from the swap. The exact percentage and recipient cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Likely charges an extra swap fee taken through a before-swap return delta, with parameters stored as two small 16-bit values that fit up to 655.35%-style raw units but probably represent basis points. Exact rates and recipient are unknown without source.
- Owner & admin controls
- No admin controls found; no function in the bytecode writes the fee-like settings, so they appear fixed at deployment.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens from the swap.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No owner or admin functions were found; the parameters appear fixed at deployment.
Risk to user funds: The hook can take a portion of trader swap amounts, with the exact percentage unverified (stored in small fixed values). LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Unverified swap-amount deduction: The hook can deduct tokens from swaps via a before-swap return delta and take() call, but the exact fee size and recipient cannot be verified from bytecode.
- [info] No admin setters: Fee-like settings are read but never written by any function, so they appear immutable after deployment.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,284 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / EQUO (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today