Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x7499ec02f6a9b1a3edaa76e4067aa9d83b348088 on Ethereum · Custom pricing
- Volume (24h)
- $2.25
- Value locked (TVL)
- $0
- All-time volume
- $2.25
- Pools using this hook
- 1
- Swaps (24h)
- 1 (1 traders)
- Total swaps
- 1
What it does
An unverified hook that may take a configurable cut of every swap before it executes, at an unconfirmed rate, while LPs can always add and withdraw liquidity freely.
How it works step by step
- Runs before every swap and can change the swap amounts using a return delta.
- Uses the PoolManager take function to pull tokens out during swaps, likely a fee or skim taken from the swap input.
- Stores a small configurable number (a 16-bit value, likely a fee rate) that can be set through an unnamed function taking two numbers.
- Keeps running counters that update on each swap, readable through a view function.
- Never runs on liquidity changes, so LPs can add and withdraw freely.
- Swap behaviour
- Before each swap the hook can take part of the swap amount via a return delta and withdraw it from the PoolManager. The exact rate and recipient cannot be confirmed from bytecode, and it is unclear who may call the setter that changes it.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Likely charges a swap fee based on a stored 16-bit value. If that value is in basis points the maximum would be about 655%, so it may be uncapped in practice, but the true cap and units are unknown. Where the collected tokens go is not verified.
- Owner & admin controls
- An unnamed function taking two numbers writes the stored fee-like value. Whether it is access-restricted, and its limits, cannot be confirmed from bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs custom logic before each swap; beforeSwapReturnDelta: lets the hook take tokens from the swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: A privileged caller, or possibly anyone, can change the stored fee-like value. The bytecode alone does not show who holds this power.
Risk to user funds: Traders' swap tokens can be partly taken during swaps, at a rate that cannot be verified from bytecode. LP principal cannot be locked or drained by this hook.
Security findings
- [medium] Swap amounts can be deducted: The hook can take tokens from swaps through a return delta and the take call. The exact rate is set by a stored 16-bit value whose cap is unverified.
- [medium] Unverified setter: The function that changes the stored value has no visible name or verified access control, so who can change the fee is unknown.
- [info] LP withdrawals unaffected: Remove-liquidity callbacks are disabled, so the hook can never block or charge LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 1,156 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / ORGAN (0.30% fee) — 24h volume $2.25, TVL $0, 1 swaps today