Oracle

b97c3261signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x4eceeb5adaa1cabd56451c1f1ea82b33effb6de62097a19734936f574e9a2de2 (GHO/USDT, currency0/currency1) the median over 9 evenly spaced blocks of the window (blocks 26120498 to 26120796, about 1 hour before 26121095), as currency0 per 1e18 raw currency1 in raw units?

Answer

1,000,405,320,656,310,194,441,258,188,281

the spot price of v4 pool 0x4ece…2de2 at the median of 9 blocks across the window: 1,000,405,320,656,310,194,441,258,188,281

1000405320656310194441258188281 uint256

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x4eceeb5adaa1cabd56451c1f1ea82b33effb6de62097a19734936f574e9a2de2","samples":9} — write recipe exactly this; compute with scan.mjs --v4-spot --samples 9.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; currency0 is GHO 0x40d16fc0246ad3160ccc09b8d0d3a2cd28ae6c2f, currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7.
poolId
0x4eceeb5adaa1cabd56451c1f1ea82b33effb6de62097a19734936f574e9a2de2
samples
9
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,120,498 to 26,120,796 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #16021,000,405,320,656,310,194,441,258,188,281
    #19531,000,405,320,656,310,194,441,258,188,281
    #10731,000,405,320,656,310,194,441,258,188,281
    #3551,000,405,320,656,310,194,441,258,188,281
    #4901,000,405,320,656,310,194,441,258,188,281
    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
    0x3f660b4964bb15f7eda453018957cc8fa51db2ca405627062b7f7b79c69c970724addb7b34a4ed7995f43e658478ef19c18e17fbe8108bfc4f0c1c20cf8120ca1b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x7fbcc22a016e47c48f5a9c8288a2a4b82bbe4b98dca20effec51f4f36f6e029a
    answer type
    uint256
    consumer
    none named; signed for the zero address