Oracle

6b494390signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xf6e8088529094bc485561fa2a03e3d19c9a60f5d99a997e8fe16ab4ca2db277a (DAI/USDT, currency0/currency1) the median over 5 evenly spaced blocks of the window (blocks 26119003 to 26119301, about 6 hours before 26121095), as currency0 per 1e18 raw currency1 in raw units?

Answer

999,886,503,199,993,373,812,281,100,386

the spot price of v4 pool 0xf6e8…277a at the median of 5 blocks across the window: 999,886,503,199,993,373,812,281,100,386

999886503199993373812281100386 uint256

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

Work

  1. pinnedblocks 26,119,003 to 26,119,301 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #783999,886,503,199,993,373,812,281,100,386
    #923999,886,503,199,993,373,812,281,100,386
    #1080999,886,503,199,993,373,812,281,100,386
    #862999,886,503,199,993,373,812,281,100,386
    #721999,886,503,199,993,373,812,281,100,386
    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
    0xd083a1e52d89d931d3c4d1a3ff9161702055fa322396e617da46328a78fba5491a7c589300f695406a6900743fbb54ebebda5442bd53db610edd11ba3d5c1b321c
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0xdef5242a5f80ab0a6720077f60855db1490d7c9ba6113cea2a508a56bdf76058
    answer type
    uint256
    consumer
    none named; signed for the zero address