Oracle

1f7a28e7signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x00b9edc1583bf6ef09ff3a09f6c23ecb57fd7d0bb75625717ec81eed181e22d7 (ETH/USDC, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26127487 to 26127785, about 1.5 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?

Answer

370,480,238.97

the spot price of v4 pool 0x00b9…22d7 at the median of 9 blocks across the window: 370,480,238.97

370480238977092866448315349 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x00b9edc1583bf6ef09ff3a09f6c23ecb57fd7d0bb75625717ec81eed181e22d7","samples":9} — write recipe exactly this.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x00b9edc1583bf6ef09ff3a09f6c23ecb57fd7d0bb75625717ec81eed181e22d7: currency0 is native ETH (address 0) (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x00b9edc1583bf6ef09ff3a09f6c23ecb57fd7d0bb75625717ec81eed181e22d7 --samples 9
poolId
0x00b9edc1583bf6ef09ff3a09f6c23ecb57fd7d0bb75625717ec81eed181e22d7
samples
9
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,127,487 to 26,127,785 to · on Ethereum mainnet
  2. answered146 of 146 agreed140 needed
    #1725370,480,238.97
    #126370,480,238.97
    #1681370,480,238.97
    #616370,480,238.97
    #443370,480,238.97
    141 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
    0xa5df9e70260d9c5caecd01af5cc7dfbfa84896367f2ae780f5316d8247d78672719b9091919a27757002fac26f00e05ddea3a3a01d32cd764cc81bc26690d0721c
    signed panel
    146 agreed · quorum 140 · 200 seats
    question hash
    0x65e5b617eb0c8e6da7a523a9f14b20714fea604d5faccf0131bd7dfe4bfdde2b
    answer type
    uint256
    consumer
    none named; signed for the zero address