Oracle

00383655panel disagreed

Which Uniswap v4 pool on BNB Smart Chain (PoolManager 0x28e2ea090877bf75740558f6bfb36a5ffee9e9df) did the most WBNB (Wrapped BNB, token 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c) volume in the last 1 hours? Rank pools whose currencies include 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c by the sum of the absolute WBNB amount over Swap events; answer the top 5 pool ids, largest first.

Answer

  1. 10X / WBNB0x253a8f84…f304d80xbb4c…095c

the top 1 by swapped volume in pools initialised since block 45970610; the first moved 3,444,067,696,821,803,892

figure
The figure is the first-ranked pool volume in raw WBNB units.
volume
For each distinct Swap event, decode amount0 and amount1 as signed int128. Add abs(amount0) if currency0 is WBNB, otherwise abs(amount1) if currency1 is WBNB. Both swap directions count; do not net events, double the volume, or add transfers, donations, liquidity changes, separate fees or hook adjustments.
window
The pinned interval is inclusive: fromBlock <= event.blockNumber <= toBlock. The closing block hash must match the request. No wall-clock reinterpretation of last 1 hours is applied.
ordering
Sort by integer WBNB volume descending, then lowercase bytes32 pool id ascending for equal volumes. Return the first five pool ids.
zeroVolume
Pools without a Swap in the window contribute zero. All five returned pools have strictly positive volume, so inactive pools cannot affect the answer.
eligibility
Include pools of PoolManager 0x28e2ea090877bf75740558f6bfb36a5ffee9e9df whose Initialize event names the WBNB address as currency0 or currency1. Include all fee tiers, tick spacings and hooks. Native BNB at the zero address is a distinct currency; a native BNB/WBNB pool qualifies through its WBNB side.
denomination
Volume is measured in raw integer units of WBNB at 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c, without rounding, price conversion or decimal normalization.
poolIdentity
A pool is the bytes32 id indexed by Initialize and Swap, equal to keccak256(abi.encode(currency0,currency1,fee,tickSpacing,hooks)). Pools remain separate even when they have the same currency pair.
initialization
Resolve immutable pool currencies from Initialize events emitted from the manager deployment block 45970610 through the pinned closing block, inclusive. This historical lookup does not widen the Swap volume window.
canonicalEvents
Count each non-removed canonical log once, identified by block hash and log index. RPC chunk boundaries are disjoint and cover the entire inclusive window.
recipe
v4-volume-rank
topN
5
token
0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
poolManager
0x28e2ea090877bf75740558f6bfb36a5ffee9e9df
initializedSince
45970610

Work

  1. pinnedblocks 123,188,283 to 123,196,277on BNB Chain
  2. answered2 of 3 agreed3 needed
    #1959
    1. 10X / WBNB0x253a8f84…f304d80xbb4c…095c
    2. USDT / WBNB0x8bd85849…a76bd60xbb4c…095c
    3. ETH / WBNB0x1821d026…5ca9730xbb4c…095c
    4. USDT / WBNB0xdf38624f…9beada0xbb4c…095c
    5. evry / WBNB0xf63ffc11…2525ce0xbb4c…095c
    #40
    1. 10X / WBNB0x253a8f84…f304d80xbb4c…095c
    2. USDT / WBNB0x8bd85849…a76bd60xbb4c…095c
    3. ETH / WBNB0x1821d026…5ca9730xbb4c…095c
    4. USDT / WBNB0xdf38624f…9beada0xbb4c…095c
    5. evry / WBNB0xf63ffc11…2525ce0xbb4c…095c
    differedby a different recipe: v4-volume-rank
    #1433
    1. 10X / WBNB0x253a8f84…f304d80xbb4c…095c
    2. USDT / WBNB0x8bd85849…a76bd60xbb4c…095c
    3. ETH / WBNB0x1821d026…5ca9730xbb4c…095c
    4. USDT / WBNB0xdf38624f…9beada0xbb4c…095c
    5. evry / WBNB0xf63ffc11…2525ce0xbb4c…095c
  3. panel disagreed2 of 3 answers agreed; 3 were required.