Oracle

56b3809asigned

On Robinhood Chain, what was the Uniswap v4 spot price of pool 0x4c862e5846659b086fe73896bbb9058513417e4e6938a1be93aeb7a768fa5754 (SPY/TSM, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 80271888 to 80307561, about 2 hours before 80378909), as currency0 per 1e18 raw currency1 in raw units?

Answer

617,135,215,760,163,225

the spot price of v4 pool 0x4c86…5754 at the median of 5 blocks across the window: 617,135,215,760,163,225

617135215760163225 uint256

recipe
{"kind":"univ4-spot","poolManager":"0x8366a39cc670b4001a1121b8f6a443a643e40951","poolId":"0x4c862e5846659b086fe73896bbb9058513417e4e6938a1be93aeb7a768fa5754","samples":5} — write recipe exactly this; compute with scan.mjs --v4-spot --pool-manager 0x8366a39cc670b4001a1121b8f6a443a643e40951 --pool-id 0x4c862e5846659b086fe73896bbb9058513417e4e6938a1be93aeb7a768fa5754 --samples 5.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x4c862e5846659b086fe73896bbb9058513417e4e6938a1be93aeb7a768fa5754: currency0 is SPY 0x117cc2133c37b721f49de2a7a74833232b3b4c0c, currency1 is TSM 0x58ffe4a942d3885baa22d7520691f611ef09e7aa; fee 500; no hook.
poolId
0x4c862e5846659b086fe73896bbb9058513417e4e6938a1be93aeb7a768fa5754
samples
5
poolManager
0x8366a39cc670b4001a1121b8f6a443a643e40951

Work

  1. pinnedblocks 80,271,888 to 80,307,561on Robinhood Chain
  2. answered142 of 142 agreed140 needed
    #545617,135,215,760,163,225
    #429617,135,215,760,163,225
    #462617,135,215,760,163,225
    #1112617,135,215,760,163,225
    #1506617,135,215,760,163,225
    137 more
  3. signed
    by the attester 0x5598…2982reproduced firstexpired

    Checking the signature in this browser.

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