Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0x1dc1f1948a20e422a17040707c94604aab768088 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 every swap and can adjust or take part of the swap amounts using settable parameters of unknown size, while LPs remain free to withdraw.
How it works step by step
- Runs custom logic before every swap and can change how much of each token the swap moves.
- Can pull tokens out of the pool during a swap and send them elsewhere.
- Keeps a small set of stored numbers (likely a rate or limit and running counters) that change as swaps happen.
- Has one unnamed function that sets two stored values. No access check was confirmed, and the caller and limits are unknown from bytecode alone.
- Never runs when LPs add or remove liquidity.
- Swap behaviour
- Before each swap the hook reads its stored settings and counters. It can return a delta that changes the swap amounts, and it can take tokens from the pool during the swap. The exact amount or rate it takes cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- The hook may charge or redirect part of the swap amount through return deltas. The size of that cut and who receives it cannot be determined from the unverified bytecode.
- Owner & admin controls
- An unnamed function writes two stored values that the swap logic uses, possibly rates or limits. Who can call it and any caps are unknown.
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: An unidentified caller can set two parameters used during swaps, which may change how much the hook takes from trades. It cannot block LP withdrawals.
Risk to user funds: Traders' swap amounts can be altered or partly taken by the hook, by an amount that cannot be confirmed from bytecode. LP principal cannot be locked or drained through withdrawal callbacks.
Security findings
- [medium] Swap amounts can be modified: Swap return deltas are enabled and the hook calls take, so it can remove tokens from swaps. The size of the deduction cannot be verified from bytecode.
- [low] Settable parameters with unknown caps: One function writes two stored values that affect swap logic. Its access control and value bounds are not visible in the decoded data.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled in the hook address, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 1,346 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / BITNA (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today