Oracle

deeabea9signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x599326d9cd5e1ea0893305c87d5ec3199e7f05e94d72159f35dea381479a615e (ETH/WBTC, currency0/currency1) the median over 9 evenly spaced blocks of the window (blocks 26120722 to 26121020, about 15 minutes before 26121095), as currency0 per 1e18 raw currency1 in raw units?

Answer

315,642,800,180.21 ETH

the spot price of v4 pool 0x5993…615e at the median of 9 blocks across the window: 315,642,800,180.21 ETH

315642800180218189119861666307 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x599326d9cd5e1ea0893305c87d5ec3199e7f05e94d72159f35dea381479a615e","samples":9} — write recipe exactly this; compute with scan.mjs --v4-spot --samples 9.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; currency0 is native ETH (address 0), currency1 is WBTC 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599.
poolId
0x599326d9cd5e1ea0893305c87d5ec3199e7f05e94d72159f35dea381479a615e
samples
9
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,120,722 to 26,121,020 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #1401315,642,800,180.21 ETH
    #443315,642,800,180.21 ETH
    #1172315,642,800,180.21 ETH
    #1893315,642,800,180.21 ETH
    #923315,642,800,180.21 ETH
    136 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
    0x56593548f595b12e25164625d9655e41a8fcdb22f9ff98ee0176772e212f56563fb140255839a601111ecec55e235822645adb9b0444449130f4acd3c1711de41b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x58f6ea5441453e43117479924db34206f725315fc21f1e9dd1175cd028b0b970
    answer type
    uint256
    consumer
    none named; signed for the zero address