Oracle

3f6b309asigned

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

Answer

0.0000000024

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

2455462012 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x50b00c1a5a8e582ec808e97e71598cd135206a9f9c548eab2ed73659e7ee5fa8","invert":true,"samples":9} — 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 9
invert
true
poolId
0x50b00c1a5a8e582ec808e97e71598cd135206a9f9c548eab2ed73659e7ee5fa8
samples
9
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. Pinnedblocks 26,149,703 to 26,150,001 to on Ethereum mainnet
  2. Answered140 of 140 agreed140 needed
    #2850.0000000024
    #9460.0000000024
    #1810.0000000024
    #3780.0000000024
    #6880.0000000024
    135 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
    0x9ada528093d9c90f3b715e8971533fafe048603b7fb3fa5bf5e11d173952d81725feccf01fde1a9a64fa6d0fde7dcb14337bcd64dc89b31078359cf5e2431d881c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0xab9de4803f82b19082d0beb459e867198b5c50ddaadb78b47bcc8362911e5942
    answer type
    uint256
    consumer
    none named; signed for the zero address