Oracle

9f843c1csigned

On Base, what was the Uniswap v4 spot price of pool 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078 (USDC/cbBTC, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 52216376 to 52218175, about 45 minutes before 52219525), as currency0 per 1e18 raw currency1 in raw units?

Answer

853,915,558,411,418

the spot price of v4 pool 0x12d7…e078 at the median of 5 blocks across the window: 853,915,558,411,418

853915558411418009358 uint256, 6 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x498581ff718922c3f8e6a244956af099b2652b2b","poolId":"0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078","samples":5} — write recipe exactly this.
pool
PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b; pool 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078: currency0 is USDC 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 (6 decimals), currency1 is cbBTC 0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf (8 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x498581ff718922c3f8e6a244956af099b2652b2b --pool-id 0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078 --samples 5
poolId
0x12d76c5c8ec8edffd3c143995b0aa43fe44a6d71eb9113796272909e54b8e078
samples
5
poolManager
0x498581ff718922c3f8e6a244956af099b2652b2b

Work

  1. pinnedblocks 52,216,376 to 52,218,175on Base
  2. answered143 of 143 agreed140 needed
    #1168853,915,558,411,418
    #847853,915,558,411,418
    #15853,915,558,411,418
    #61853,915,558,411,418
    #1497853,915,558,411,418
    138 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
    0x620f5eed5c5d31409b5af218590c36c09f07dd8818e0b16fed2b49804589bab72a0605828e0843223d1fab4dfa35fee907095e12d62b872d3a326d64f5fe11d01c
    signed panel
    143 agreed · quorum 140 · 200 seats
    question hash
    0x612e2bf69e374c13fc5ae0d5b2c388bf8216123c32093ebda6df8289997c7682
    answer type
    uint256
    consumer
    none named; signed for the zero address