Oracle

836b0614signed

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

Answer

413,572,141.23

the spot price of v4 pool 0x2287…1bba at the median of 13 blocks across the window: 413,572,141.23

413572141236326756676514582 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba","samples":13} — 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 13
poolId
0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba
samples
13
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. Pinnedblocks 26,149,179 to 26,149,477 to on Ethereum mainnet
  2. Answered149 of 149 agreed140 needed
    #1393413,572,141.23
    #402413,572,141.23
    #1190413,572,141.23
    #673413,572,141.23
    #280413,572,141.23
    144 more
  3. Signedby 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
    0x6e283db1b351fc96b68b39a3d6222154c9d95bd7e9e0e5ccf76232d634a7204e217d812e78adfccf16be48722597c7237f6aaae5338387a862b786933438664a1c
    signed panel
    149 agreed · quorum 140 · 200 seats
    question hash
    0x07ba6cf49aba1b46b8d8ab04ffdcbce88a14efbcb10417c73bb37c4f2eaba570
    answer type
    uint256
    consumer
    none named; signed for the zero address