Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0x088047bdde4b2848c094adafb22ea4443d164088 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 takes a configurable cut from swaps before they execute, so all traders pay an extra fee of unknown size, while LPs can add and withdraw freely.
How it works step by step
- Runs before every swap and can take a cut of the swap's input tokens using a return delta.
- Stores a small fee-like setting (a 16-bit value) that can be changed through an unnamed setter function.
- Pulls the deducted tokens out of the PoolManager with a take call, likely to the hook or a recipient.
- Keeps running counters (totals, last values) that a view function exposes.
- Does not touch liquidity adds or withdrawals.
- Swap behaviour
- Before each swap the hook can deduct part of the swap amount and withdraw it from the PoolManager. The exact percentage and who receives it cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Charges a hook-level fee on swaps based on a stored 16-bit setting (likely basis points, which could mean up to about 655% in raw value but may be bounded in code). The cap and recipient are unverified.
- Owner & admin controls
- A setter function writes the stored 16-bit fee setting; it is unclear from bytecode whether it is access-restricted or what maximum it enforces.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: computes and collects the hook's cut before the swap executes; beforeSwapReturnDelta: lets the hook adjust swap amounts to take that cut.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: Not stated.
Risk to user funds: Only swap amounts are exposed, through the hook's pre-swap deduction whose maximum is unknown from bytecode. LP principal cannot be locked or drained.","centralization":"Whoever can call the fee setter can change the swap cut; it is unclear if this is an owner-only function. They cannot affect LP withdrawals.
Security findings
- [medium] Unverified swap fee via return delta: The hook can deduct tokens from swaps and take them from the PoolManager, but the fee size and cap are not verifiable without source.
- [low] Mutable fee setting: An unnamed function updates the stored 16-bit fee parameter; caller restrictions and bounds are unknown.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so LPs can always withdraw.
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 / BACKED (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today