Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0x012755df967b988fa1a3434b6b1a57c7870c8088 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
Small immutable hook that acts before every swap and may take an unverified cut of the trade, while LPs can always add and withdraw freely.
How it works step by step
- Runs a check before every swap and can change how much of the swap it handles itself.
- Can pull tokens out of the PoolManager to its own address during a swap, which is how it collects a cut or settles part of the trade.
- Keeps a running counter, a total and a timestamp-like value updated on each swap, readable through two view functions.
- Never touches adding or removing liquidity.
- Swap behaviour
- Before each swap the hook can adjust the swap amounts and take tokens from the PoolManager, which likely means a fee or partial fill on the input side. The exact amount cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- May deduct an extra hook fee from swaps on top of the pool fee, but the rate and recipient cannot be confirmed from unverified bytecode. No setter for the fee was found.
- Owner & admin controls
- No admin or owner functions were found; only two read-only view functions exist besides the swap callback.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates stored counters before each swap; beforeSwapReturnDelta: lets the hook change swap amounts and take tokens during the swap.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: No privileged roles were detected and the contract is not upgradeable. Its behaviour is set by the deployed code.
Risk to user funds: Traders' swap amounts can be reduced by an unknown amount taken during the swap. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Unverified swap amount changes: The hook can change swap amounts and take tokens from swaps, but without source the size of any deduction cannot be confirmed.
- [info] No admin setters found: No owner or configuration functions appear in the bytecode, so behaviour looks fixed once deployed.
- [info] LP withdrawals unrestricted: The remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,383 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / CURB (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today