Oracle

25ba6359signed

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

Answer

0.000000000001

the spot price of v4 pool 0xf6e8…277a at the median of 13 blocks across the window: 0.000000000001

1000058 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xf6e8088529094bc485561fa2a03e3d19c9a60f5d99a997e8fe16ab4ca2db277a","invert":true,"samples":13} — write recipe exactly this.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xf6e8088529094bc485561fa2a03e3d19c9a60f5d99a997e8fe16ab4ca2db277a: currency0 is DAI 0x6b175474e89094c44da98b954eedeac495271d0f (18 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xf6e8088529094bc485561fa2a03e3d19c9a60f5d99a997e8fe16ab4ca2db277a --invert --samples 13
invert
true
poolId
0xf6e8088529094bc485561fa2a03e3d19c9a60f5d99a997e8fe16ab4ca2db277a
samples
13
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,127,487 to 26,127,785 to · on Ethereum mainnet
  2. answered149 of 149 agreed140 needed
    #5440.000000000001
    #700.000000000001
    #6520.000000000001
    #5920.000000000001
    #470.000000000001
    144 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
    0x429ba06a12e025343e5a4ad37b03a758e94a12526032c9de2a6ff6795dfa3935662ab0439b8e263e59115d5dc994595add739541083820e53666e9892f393a641c
    signed panel
    149 agreed · quorum 140 · 200 seats
    question hash
    0xb3b96f9e586ec36bedda0ba5574fca6ba13638c7e70276abe5a53aa1fe2c17f4
    answer type
    uint256
    consumer
    none named; signed for the zero address