Oracle

b00750ddsigned

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x3d8a4e3c8985f514808a901424724c9bc03b7a5b5ac3ca8b679d4681690d1e7f (ETH/WBTC, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 26127786 to 26128084, about 30 minutes before 26128234), as currency1 per 1e18 raw currency0 in raw units?

Answer

0.0000000000031

the spot price of v4 pool 0x3d8a…1e7f at the median of 5 blocks across the window: 0.0000000000031

3167949 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x3d8a4e3c8985f514808a901424724c9bc03b7a5b5ac3ca8b679d4681690d1e7f","invert":true,"samples":5} — write recipe exactly this.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x3d8a4e3c8985f514808a901424724c9bc03b7a5b5ac3ca8b679d4681690d1e7f: currency0 is native ETH (address 0) (18 decimals), currency1 is WBTC 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 (8 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x3d8a4e3c8985f514808a901424724c9bc03b7a5b5ac3ca8b679d4681690d1e7f --invert --samples 5
invert
true
poolId
0x3d8a4e3c8985f514808a901424724c9bc03b7a5b5ac3ca8b679d4681690d1e7f
samples
5
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,127,786 to 26,128,084 to · on Ethereum mainnet
  2. answered143 of 143 agreed140 needed
    #17630.0000000000031
    #2800.0000000000031
    #15180.0000000000031
    #8040.0000000000031
    #9460.0000000000031
    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
    0x55b19c006278d572aedd4f082fbe37de68ad2ae43173fa8b036747cc3c3929ce711c66350663f33cd6bcfe88ba9bd7dc5f106be60de72e551e88f2fd753329471b
    signed panel
    143 agreed · quorum 140 · 200 seats
    question hash
    0xa3df56921254871be9acee5cfafc906e02dc50407e78f49d834f064381d8583a
    answer type
    uint256
    consumer
    none named; signed for the zero address