Oracle

792ca774signed

On BNB Smart Chain, what was the Uniswap v4 spot price of pool 0x9bccb024a3de449f597b2d9ccb45c997f499222dbc531d0735b349a5dab878eb the median over 13 evenly spaced blocks of the window (blocks 125140145 to 125148141, about 6 hours before 125196123), as currency1 per 1e18 raw currency0 in raw units?

Answer

779,184,834,945,314,371,138

the spot price of v4 pool 0x9bcc…78eb at the median of 13 blocks across the window: 779,184,834,945,314,371,138

779184834945314371138 uint256

recipe
{"kind":"univ4-spot","poolManager":"0x28e2ea090877bf75740558f6bfb36a5ffee9e9df","poolId":"0x9bccb024a3de449f597b2d9ccb45c997f499222dbc531d0735b349a5dab878eb","invert":true,"samples":13} — write recipe exactly this; compute with scan.mjs --v4-spot --invert --samples 13.
pool
PoolManager 0x28e2ea090877bf75740558f6bfb36a5ffee9e9df; the pool pairs native BNB with 0xedf90cd54156367be514f1672b4405c6ec9485ba.
invert
true
poolId
0x9bccb024a3de449f597b2d9ccb45c997f499222dbc531d0735b349a5dab878eb
samples
13
poolManager
0x28e2ea090877bf75740558f6bfb36a5ffee9e9df

Work

  1. pinnedblocks 125,140,145 to 125,148,141on BNB Chain
  2. answered145 of 145 agreed140 needed
    #192779,184,834,945,314,371,138
    #1314779,184,834,945,314,371,138
    #480779,184,834,945,314,371,138
    #897779,184,834,945,314,371,138
    #1849779,184,834,945,314,371,138
    140 more
  3. signed
    by the attester 0x5598…2982reproduced firstexpired

    Checking the signature in this browser.

    typed data
    the exact bytes a consumer verifies, as JSON
    attester
    0x5598aa9146215bc13eb26f2c692ad1461fd32982
    signature
    0xfb17f3affb27a03a7e24a9d8f6944aa10176f74ad418158bb229c64cfbc1ba1e1430a5ffecddc12f3eb59b4444222e512baed85fff8aae85be2667ae0e4a69931c
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0xbe61fd9f50413b16a35b0e818b692a631cddde6d689a3622bf515165848b8367
    answer type
    uint256
    consumer
    none named; signed for the zero address