Oracle

50e48607signed

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

Answer

1,000,118,821,806,060,903

the spot price of v4 pool 0x8aa4…4e47 at the median of 9 blocks across the window: 1,000,118,821,806,060,903

1000118821806060903 uint256

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

Work

  1. pinnedblocks 26,119,302 to 26,119,600 to · on Ethereum mainnet
  2. answered145 of 145 agreed140 needed
    #5281,000,118,821,806,060,903
    #8791,000,118,821,806,060,903
    #16971,000,118,821,806,060,903
    #7181,000,118,821,806,060,903
    #7981,000,118,821,806,060,903
    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
    0xac002dca6b2dfddf955d8081804606fa6916946e2e0f59cd9a0a6642c046a0a429c7947efdece21882d4d27674a0fdc13e4ba4ccaf9db5cd40183f0ef48d7dd71b
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0xd7d3e4731fee417d6858140926bd0335f5156ef8eafb454a4632776d8999b6c4
    answer type
    uint256
    consumer
    none named; signed for the zero address