Oracle

29dc3c11signed

On Base, what was the Uniswap v4 spot price of pool 0xaf2baac6d043d22f9ce14439228fbbf90c108a1dc809e32ad4e7e9e13fc941ac (VIRTUAL/USDC, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 52216826 to 52218625, about 30 minutes before 52219525), as currency0 per 1e18 raw currency1 in raw units?

Answer

1,185,972,601,626

the spot price of v4 pool 0xaf2b…41ac at the median of 5 blocks across the window: 1,185,972,601,626

1185972601626005033357892997630 uint256, 18 decimals

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

Work

  1. pinnedblocks 52,216,826 to 52,218,625on Base
  2. answered145 of 145 agreed140 needed
    #4871,185,972,601,626
    #19261,185,972,601,626
    #15141,185,972,601,626
    #8801,185,972,601,626
    #14271,185,972,601,626
    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
    0x8fc1aaac60f464ffc47efd4a1d50ba0cfb24dd74d487971591c3f94be425d69f5aabb31aa44b355750b8f9ad69050b4c6b11512ec7933c280a7d9a5759451d7d1b
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0x7f233167dd1ccc06ee9b9c3a90300d5cd9eb4a48eaf57d4a233a5801ab5ee3eb
    answer type
    uint256
    consumer
    none named; signed for the zero address