Likely custom pricing hook on BNB Chain
Uniswap v4 Hook Contract 0x3d43695d78394eaa437af021e7bf2b6b0a044088 on BNB Chain · 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 runs custom logic before swaps and can adjust the swap amounts and withdraw currency from the pool, so the exact trades that pay more or less cannot be determined from the bytecode alone.
How it works step by step
- Implements beforeSwap, which is invoked by the PoolManager before each swap on pools using this hook
- Uses beforeSwapReturnDelta, so the hook can return a delta that alters the amounts settled for the swap
- Calls take(address,address,uint256) on the PoolManager, which means it withdraws currency from the pool to itself or a recipient during swaps
- Writes three uint256 storage slots (0, 1, 2) inside beforeSwap, indicating per-call state such as counters, accumulators or parameters
- Exposes two view functions (0x51060b47 and 0xbeedc6a3, the latter returning bool) that read the same storage slots, likely status or parameter getters
- Swap behaviour
- On each swap the hook runs beforeSwap, may take currency out of the pool through PoolManager.take, and returns a delta that changes the swap settlement. Exact amounts and which trades pay more or less cannot be determined from decoded bytecode alone.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Fee logic cannot be fully determined from decoded bytecode; the hook alters swap deltas via beforeSwapReturnDelta and may charge or redirect value, so it should not be assumed to use the pool's static fee.
- Owner & admin controls
- No admin controls found in decoded bytecode; no owner or upgrade selectors were identified, but the view functions and storage layout could not be mapped to named controls.
Enabled Uniswap v4 callbacks
beforeSwap, beforeSwapReturnDelta
beforeSwap is used to run custom logic before each swap; beforeSwapReturnDelta is used to return a delta that changes the swap amounts and lets the hook take or redirect value.
Security & trust assessment
Risk level: high, estimated (decoded bytecode, low confidence).
Who controls it: Cannot be determined without source; no owner or admin selectors were decoded, so privileged control appears limited, but any hidden admin path would be unseen.
Risk to user funds: The hook can take currency from the pool via PoolManager.take and adjust swap deltas through its return delta, so it can move or redirect pool and trader funds during swaps.
Security findings
- [high] Return delta with currency movement: The hook has beforeSwapReturnDelta and calls take(address,address,uint256), so it can alter swap settlement and withdraw pool currency during swaps.
- [medium] Unverified source: No verified source is available, so the exact logic, parameter sources and any privileged paths cannot be confirmed from the bytecode.
- [info] Storage state written on swap: beforeSwap writes three storage slots, indicating state that evolves with each swap and may be manipulable by swap sequencing.
Contract details
- Verified source
- No
- Bytecode size
- 1,670 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, return-delta
Pools using Likely custom pricing hook
- BNB / MEMEFLIX (0.30% fee) — 24h volume $0, TVL $0, 0 swaps today