Likely custom pricing hook on Base
Uniswap v4 Hook Contract 0x4687f05982bdcd902f1ee812beb008b439054088 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 unverified hook that runs before every swap and can take an unknown portion of swap amounts based on a settable stored parameter, while LPs remain free to withdraw at any time.
How it works step by step
- Runs a check before every swap and can change the swap amounts through a return delta.
- Can pull tokens out of the PoolManager during a swap using take, likely to collect a fee or hold back part of the swap.
- Keeps a stored 128-bit value and a 32-bit counter that updates on each swap.
- Has an unnamed function that sets the stored value. From bytecode alone it is unclear who may call it.
- Never runs on liquidity adds or withdrawals, so LPs can always remove their funds.
- Swap behaviour
- Before each swap the hook reads its stored settings, updates a counter, and may take tokens from the swap through a return delta, which changes what the trader pays or receives. The exact amount and conditions cannot be confirmed from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Any deduction is taken from swap amounts via the return delta and pulled out with take. The percentage, cap and recipient cannot be determined from unverified bytecode.
- Owner & admin controls
- An unnamed function writes the stored 128-bit value used in swaps. It may be an admin-set parameter such as a fee or limit, but access control and bounds are unknown.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic and updates state 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: A writer of the stored parameter may exist, but its identity and powers cannot be confirmed from bytecode. At most it can affect swap behaviour, not LP withdrawals.
Risk to user funds: Traders' swap amounts can be reduced by an unknown amount through the return delta. LP principal cannot be locked or taken by this hook.
Security findings
- [medium] Unverified swap-amount modification: The hook can alter swap amounts and take tokens during swaps. Without source code, the size of this deduction and any cap cannot be verified.
- [low] Settable swap parameter: One function updates a stored value that the swap logic reads. Who can call it, and its limits, are unknown.
- [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,305 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / TRACK (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today