Oracle

1aeee2ddsigned

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xe500210c7ea6bfd9f69dce044b09ef384ec2b34832f132baec3b418208e3a657 (USDC/WETH, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26149703 to 26150001, about 45 minutes before 26150225), as currency0 per 1e18 raw currency1 in raw units?

Answer

2,459.97

the spot price of v4 pool 0xe500…a657 at the median of 13 blocks across the window: 2,459.97

2459972863 uint256, 6 decimals

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

Work

  1. Pinnedblocks 26,149,703 to 26,150,001 to on Ethereum mainnet
  2. Answered141 of 141 agreed140 needed
    #18462,459.97
    #17052,459.97
    #11132,459.97
    #1922,459.97
    #5032,459.97
    136 more
  3. Signedby the attester 0x5598…2982reproduced firstexpired

    Checking the signature in this browser.

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