Oracle

2d8ef862signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xb2b92b56988a4edbe255989792c6ea239b25eaf66b42093145cbf8f630db3a17 (EURC/USDC, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 26126740 to 26127038, about 4 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?

Answer

892,967,452,762.49

the spot price of v4 pool 0xb2b9…3a17 at the median of 5 blocks across the window: 892,967,452,762.49

892967452762497418 uint256, 6 decimals

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

Work

  1. pinnedblocks 26,126,740 to 26,127,038 to · on Ethereum mainnet
  2. answered140 of 140 agreed140 needed
    #1514892,967,452,762.49
    #1486892,967,452,762.49
    #15892,967,452,762.49
    #1574892,967,452,762.49
    #923892,967,452,762.49
    135 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
    0xdf60682da86d13d8e1c646c38e640efe071056003af385da06e7cc3d109cb79f10f1ecb428867c594e551094560f9629553759afc340aaa727bf53f95231d5ec1b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x43f485eb83948c760d56bbff30de2a971aaf65cdff74f4b2f28e3bc18069a87e
    answer type
    uint256
    consumer
    none named; signed for the zero address