Oracle

cf8b216asigned

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

Answer

999,879,208,021,170,859

the spot price of v4 pool 0x2b21…f634 at the median of 5 blocks across the window: 999,879,208,021,170,859

999879208021170859 uint256

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

Work

  1. pinnedblocks 26,120,199 to 26,120,497 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #1168999,879,208,021,170,859
    #668999,879,208,021,170,859
    #783999,879,208,021,170,859
    #1129999,879,208,021,170,859
    #246999,879,208,021,170,859
    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
    0xf31ecbc1838ff068852aed29832c34a16eeff9ad087daea10b8a2828a09ce8cc284b4828167db19a6b1ff523ff37ad611e9663fd45e35bf19bf15854dd9eeae41b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0xe6c5aecf668246ff2d8c4488debe2bc9900e13d186306ab62aa4cf8f59d6a1b4
    answer type
    uint256
    consumer
    none named; signed for the zero address