Oracle

6b9b90d7signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba (ETH/USDT, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26127487 to 26127785, about 1.5 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?

Answer

370,473,555.26

the spot price of v4 pool 0x2287…1bba at the median of 9 blocks across the window: 370,473,555.26

370473555269370418050334965 uint256, 18 decimals

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

Work

  1. pinnedblocks 26,127,487 to 26,127,785 to · on Ethereum mainnet
  2. answered140 of 140 agreed140 needed
    #953370,473,555.26
    #671370,473,555.26
    #1207370,473,555.26
    #760370,473,555.26
    #493370,473,555.26
    135 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
    0x2daeb0d074a38f2d223ea3d8e395b9b25dd4855ab3eeb2276569368e71b8e9030f423cb50de18a92b5c3c8549d1bc4259640223c3ab8db6dbcd97d3633c21af11c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x41b840263956f4ab045510a289432073d293e73ebef5e1d865dc3e72bca08364
    answer type
    uint256
    consumer
    none named; signed for the zero address