Oracle

79ad6c9fsigned

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x0fb0e40cec3bb23e13abc585958a93c796fbea56955e19a23727a716a0423239 (USDC/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26127786 to 26128084, about 30 minutes before 26128234), as currency0 per 1e18 raw currency1 in raw units?

Answer

1,000,000,361,499.21

the spot price of v4 pool 0x0fb0…3239 at the median of 13 blocks across the window: 1,000,000,361,499.21

1000000361499210814 uint256, 6 decimals

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

Work

  1. pinnedblocks 26,127,786 to 26,128,084 to · on Ethereum mainnet
  2. answered140 of 140 agreed140 needed
    #10811,000,000,361,499.21
    #2971,000,000,361,499.21
    #11601,000,000,361,499.21
    #2801,000,000,361,499.21
    #16691,000,000,361,499.21
    135 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
    0xca0402675be54bf2f935f0f541131d72be8cc2cf52420de023e9fe5e0decfb266531394028a040974b06831d6b71f6f082a1c805d20b12984016fdb227169fd61b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x9f44c94c303bf2dbe1e6518fe4b09185a3d78f63fbfa5a9657a49444bcd99842
    answer type
    uint256
    consumer
    none named; signed for the zero address