Oracle

2bde7ad9signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb (USDC/USDG, currency0/currency1) the median over 5 evenly spaced blocks of the window (blocks 26119003 to 26119301, about 6 hours before 26121095), as currency0 per 1e18 raw currency1 in raw units?

Answer

1,000,075,434,011,491,992

the spot price of v4 pool 0xeda6…7edb at the median of 5 blocks across the window: 1,000,075,434,011,491,992

1000075434011491992 uint256

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb","samples":5} — write recipe exactly this; compute with scan.mjs --v4-spot --samples 5.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; currency0 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, currency1 is USDG 0xe343167631d89b6ffc58b88d6b7fb0228795491d.
poolId
0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb
samples
5
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,119,003 to 26,119,301 to · on Ethereum mainnet
  2. answered143 of 143 agreed140 needed
    #17711,000,075,434,011,491,992
    #18441,000,075,434,011,491,992
    #13281,000,075,434,011,491,992
    #16131,000,075,434,011,491,992
    #3411,000,075,434,011,491,992
    138 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
    0x0936ceba984f9f3bbbe8ea2abd5d62423ae452d4c6112af53aac2fca3ec5fa4c72a97e2846729600dcac574974d5f96a2834d109bf1cd1b122ca5c69d0e38df91c
    signed panel
    143 agreed · quorum 140 · 200 seats
    question hash
    0x7f8947ec613dc17b4655e7d999450f75739398a87187d3f2ca1d4ca65f158588
    answer type
    uint256
    consumer
    none named; signed for the zero address