Custom pricing hook on Ethereum
Uniswap v4 Hook Contract 0xe14a92dcc77dfe9abfd44502a1de050480b64088 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
A custom beforeSwap hook that adjusts swap accounting through return deltas and may take currency from swaps, with exact behaviour unverified because no source is available.
How it works step by step
- Runs logic before every swap on this pool
- Reads and updates storage slots 0 to 3 during swaps
- Returns a before-swap delta that changes settled amounts (beforeSwapReturnDelta)
- Calls take to move a currency amount out of the pool during the swap
- Exposes two read-only views, neutron() and quasar(), that return stored values
- Swap behaviour
- Runs beforeSwap on every swap, reads swap parameters and storage, may call take to move currency, and returns a delta that alters settled amounts.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Not determinable from decoded bytecode alone; the hook has beforeSwap with return-delta permission and calls take, which suggests it may charge or redirect value during swaps rather than only relying on the pool's static fee.
- Owner & admin controls
- No admin controls found. The hook exposes no owner, pause or setter selectors; storage slots 0-3 are written only inside beforeSwap, so parameters are set by the contract logic itself, not by an external privileged caller that is visible in the dispatch table.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap: runs before each swap and is able to influence the swap, including reading the swap parameters and storage state. beforeSwapReturnDelta: lets the hook return a delta that alters the amounts settled for the swap, enabling it to take or supply currency on the swap path.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: No privileged key is visible in the dispatch table, so centralization risk cannot be confirmed from bytecode; any owner-like control would need to be reconstructed from storage writes, which are limited to the swap path.
Risk to user funds: The hook can take currency from swaps through take() and adjust the swap delta via beforeSwapReturnDelta, so it can affect amounts received by traders and possibly revert swaps; it does not appear to hold a custodial balance beyond what the pool settles.
Security findings
- [medium] Hook moves currency via return delta: The hook uses beforeSwapReturnDelta and calls take(address,address,uint256), so it can move currency during swaps and alter settled amounts relative to the pool's normal accounting.
- [info] Mutable state updated on every swap: Storage slots 0 through 3 are written in beforeSwap and read by the view selectors neutron() and quasar(), indicating swap-dependent state that is updated on every swap.
- [medium] Unverified source limits analysis: Without verified source, the exact conditions under which the hook takes or returns value cannot be confirmed, so the economic effect on traders and LPs is uncertain.
Contract details
- Verified source
- No
- Bytecode size
- 1,199 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Custom pricing hook
- ETH / HORIZON (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today