Oracle

0dc5bb97signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x72daf39b278fab80f18ad2adf73cc8b1ae63de1e508d36aa033285fff506f169 (USDC/mUSD, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 26127637 to 26127935, about 1 hour before 26128234), as currency1 per 1e18 raw currency0 in raw units?

Answer

1,000,026,386,680.69

the spot price of v4 pool 0x72da…f169 at the median of 5 blocks across the window: 1,000,026,386,680.69

1000026386680690054 uint256, 6 decimals

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

Work

  1. pinnedblocks 26,127,637 to 26,127,935 to · on Ethereum mainnet
  2. answered145 of 145 agreed140 needed
    #8631,000,026,386,680.69
    #11331,000,026,386,680.69
    #13421,000,026,386,680.69
    #13131,000,026,386,680.69
    #9481,000,026,386,680.69
    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
    0x0fc0d17353e6cd3cfe018bdea2c55c991fc57edadf4774e9feef9a3afd28e979326eb802732679895a23febe270861ac92eab207011bea6c35f04cc55846a0731c
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0x13b7cbaab65d8c79324771a43075c0e570f4da655a51d107342d7a77d473e548
    answer type
    uint256
    consumer
    none named; signed for the zero address