Oracle

cdd5f4f8signed

On Robinhood Chain, what was the Uniswap v4 spot price of pool 0x233710874e135e036c835b4a96d5d39bc4f9a8be71bbf762af7636fe713d5226 (ETH/GMP, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 80987841 to 81023242, about 15 minutes before 81032093), as currency0 per 1e18 raw currency1 in raw units?

Answer

0.000000049

the spot price of v4 pool 0x2337…5226 at the median of 9 blocks across the window: 0.000000049

49641204138 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x8366a39cc670b4001a1121b8f6a443a643e40951","poolId":"0x233710874e135e036c835b4a96d5d39bc4f9a8be71bbf762af7636fe713d5226","samples":9} — write recipe exactly this.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x233710874e135e036c835b4a96d5d39bc4f9a8be71bbf762af7636fe713d5226: currency0 is native ETH (address 0) (18 decimals), currency1 is GMP 0x69e731c83ecd43ea515d945365a6b69b7baf11b0 (18 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x8366a39cc670b4001a1121b8f6a443a643e40951 --pool-id 0x233710874e135e036c835b4a96d5d39bc4f9a8be71bbf762af7636fe713d5226 --samples 9
poolId
0x233710874e135e036c835b4a96d5d39bc4f9a8be71bbf762af7636fe713d5226
samples
9
poolManager
0x8366a39cc670b4001a1121b8f6a443a643e40951

Work

  1. pinnedblocks 80,987,841 to 81,023,242on Robinhood Chain
  2. answered145 of 145 agreed140 needed
    #7570.000000049
    #11130.000000049
    #18440.000000049
    #18140.000000049
    #3770.000000049
    140 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
    0x2f7e2305c645f15e538c236d6300a17649e856a45a08dd9b65c8314563b3adb27ed6fb85d82f8feb32c0f8935c02de023519f6b562ec0830f697d607b6d686921b
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0x6c22aa44ab28c4564be6266defddd879247366e6d8eeabb3c80d7c6ac0524154
    answer type
    uint256
    consumer
    none named; signed for the zero address