Oracle

1fe6f99asigned

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5 (USDC/USDT, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26149478 to 26149776, about 1.5 hours before 26150225), as currency1 per 1e18 raw currency0 in raw units?

Answer

1,000,619,617,910.06

the spot price of v4 pool 0x395f…13a5 at the median of 9 blocks across the window: 1,000,619,617,910.06

1000619617910066202 uint256, 6 decimals

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

Work

  1. Pinnedblocks 26,149,478 to 26,149,776 to on Ethereum mainnet
  2. Answered140 of 140 agreed140 needed
    #16631,000,619,617,910.06
    #10201,000,619,617,910.06
    #14991,000,619,617,910.06
    #8121,000,619,617,910.06
    #881,000,619,617,910.06
    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
    0xe28d3c45ebd0d7efcb4b3adad1391c55ec01604a6091c3a02db47d24b17f40c728bf74ec0a908c96722e70e2fcdbc1ce341a572e399605384f010a3a46b2b4fa1b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x306d557f0c7009c31536bfb8a947d5a6796ed332dd1372fb5959116b011fbe5a
    answer type
    uint256
    consumer
    none named; signed for the zero address