Oracle

f77f3688signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3 (WETH/USDT, currency0/currency1) the median over 9 evenly spaced blocks of the window (blocks 26119601 to 26119899, about 4 hours before 26121095), as currency0 per 1e18 raw currency1 in raw units?

Answer

370,752,227,450,909,849,687,827,968

the spot price of v4 pool 0x9007…79b3 at the median of 9 blocks across the window: 370,752,227,450,909,849,687,827,968

370752227450909849687827968 uint256

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

Work

  1. pinnedblocks 26,119,601 to 26,119,899 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #166370,752,227,450,909,849,687,827,968
    #658370,752,227,450,909,849,687,827,968
    #1381370,752,227,450,909,849,687,827,968
    #862370,752,227,450,909,849,687,827,968
    #398370,752,227,450,909,849,687,827,968
    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
    0xa6d5fb9031bfa1ec5553e11df22cf54491248ec5466287270b1337b06dfc1bba4a09ed977fc5e64570d6e4480973f2932c8f00b89c9786c4881f480ecba732ba1c
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0xc055342d29a8ba8f12e954d4cb582067c7cd07235c5537e427b9b4b8879e1616
    answer type
    uint256
    consumer
    none named; signed for the zero address