Oracle

caa09329signed

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

Answer

1,000,009,637,889.25

the spot price of v4 pool 0x2b21…f634 at the median of 5 blocks across the window: 1,000,009,637,889.25

1000009637889252344 uint256, 6 decimals

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

Work

  1. pinnedblocks 26,127,712 to 26,128,010 to · on Ethereum mainnet
  2. answered146 of 146 agreed140 needed
    #3511,000,009,637,889.25
    #4901,000,009,637,889.25
    #17461,000,009,637,889.25
    #15641,000,009,637,889.25
    #9261,000,009,637,889.25
    141 more
  3. signed
    by the attester 0x5598…2982reproduced firstusable until

    Checking the signature in this browser.

    typed data
    the exact bytes a consumer verifies, as JSON
    attester
    0x5598aa9146215bc13eb26f2c692ad1461fd32982
    signature
    0x77cef2f2bd56e2933781e18a53bc7b2c2ce89d8a53cb5ded53907f3c66cb86850df00ac9b2809d3fe331637622fd6db24d2a3ad4a6bc170094779e44867f96cb1c
    signed panel
    146 agreed · quorum 140 · 200 seats
    question hash
    0x7e7068f8d89721f0a66a618764c7ea748934339454c29e65ffa453753e94cfdd
    answer type
    uint256
    consumer
    none named; signed for the zero address