Oracle

97528ebesigned

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x50b00c1a5a8e582ec808e97e71598cd135206a9f9c548eab2ed73659e7ee5fa8 (ETH/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26127338 to 26127636, about 2 hours before 26128234), as currency1 per 1e18 raw currency0 in raw units?

Answer

0.0000000026

the spot price of v4 pool 0x50b0…5fa8 at the median of 13 blocks across the window: 0.0000000026

2689848957 uint256, 18 decimals

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

Work

  1. pinnedblocks 26,127,338 to 26,127,636 to · on Ethereum mainnet
  2. answered141 of 141 agreed140 needed
    #18490.0000000026
    #18920.0000000026
    #10590.0000000026
    #12710.0000000026
    #4020.0000000026
    136 more
  3. signed
    by the attester 0x5598…2982reproduced firstusable until

    Checking the signature in this browser.

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