Likely custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0x0797b7642b24176544c870058fd6b6eaa741c088 on Ethereum · 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 hook takes a currency amount from swaps through return deltas, so traders are charged by the hook's own logic, though the exact trades affected cannot be confirmed without source.
How it works step by step
- Implements beforeSwap, which runs before every swap in the pool it is attached to
- Calls take(address,address,uint256) on the PoolManager, so it can withdraw tokens from the pool's accounting during a swap
- Uses the beforeSwapReturnDelta permission, so the amount it takes is netted against the swap's delta and changes how much the trader receives or pays
- Reads and writes two storage slots (slot 0 and slot 1) on each swap, consistent with tracking a counter or state between swaps
- Exposes a view function 0xd6f4df89 that reads the same storage, likely a getter for that state
- Swap behaviour
- On every swap, beforeSwap runs first, takes an amount of the currency via the PoolManager and returns a delta that adjusts the swap amounts. Exactly which trades pay more or less cannot be determined from the decoded bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Fee handling cannot be fully determined; the hook takes currency via return deltas on swaps, which acts as a custom charge on the swap rather than the pool's static fee.
- Owner & admin controls
- No admin controls found.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic and take currency before each swap; beforeSwapReturnDelta lets the hook return a delta that modifies the swap's amounts.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: No owner or admin functions were identified, so no privileged key was found; the risk comes from the hook's own logic rather than an operator.
Risk to user funds: The hook can take currency from swaps via take and return deltas, so traders may pay an amount set by the hook logic; this is the main exposure for user funds.
Security findings
- [high] Hook takes currency via return delta: The hook has beforeSwapReturnDelta and calls take on the PoolManager during swaps, so it can extract tokens from swap flows; the amount and conditions are set by bytecode logic that could not be fully decoded.
- [medium] No source available: Without verified source, the exact pricing, fee and withdrawal logic cannot be confirmed, so the true extraction amount is unknown.
- [info] Storage state updated on every swap: Two storage slots are written in beforeSwap, indicating persistent state that influences swap behaviour.
Contract details
- Verified source
- No
- Bytecode size
- 1,112 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- ETH / MIND (1.00% fee) — 24h volume $0, TVL $0, 0 swaps today