Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0xbc1972fa9ad549702621a3d29b0867401200c088 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
An immutable, unverified hook that runs before each swap and may take an unknown cut of swap amounts, while LPs can add and withdraw liquidity freely.
How it works step by step
- Runs custom logic before every swap in pools that use it.
- Can change swap amounts through a before-swap return delta and pull tokens out of the PoolManager to the hook or a set address.
- Keeps internal counters in storage that update on each swap, readable through one view function.
- Has no liquidity callbacks, so adding and removing liquidity work normally.
- Swap behaviour
- Before each swap the hook can adjust the swap amounts and take tokens from the PoolManager, which likely acts as a fee or a custom pricing step. The exact amount or formula cannot be confirmed from bytecode alone.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- May charge a hook fee on swaps by taking tokens through a return delta. The fee size and recipient are not verifiable from bytecode and may depend on stored parameters.
- Owner & admin controls
- No admin or owner functions were found; the only external functions are the swap callback and one read-only view. Some stored values are never written after deployment, so they act as fixed settings.
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.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No privileged admin functions were detected and the contract is not a proxy. Behaviour seems fixed at deployment.
Risk to user funds: The hook can take part of a trader's swap amounts through its before-swap delta, with an unknown maximum. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Unverified swap return delta: The hook can change swap amounts and take tokens on every swap, but with no verified source the size of any deduction cannot be confirmed.
- [info] No admin functions visible: Only the swap callback and a view function are exposed, so no one appears able to change settings after deployment.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,309 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / TOFI (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today