Oracle

7f7d6598signed

On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1 (USDe/USDC, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26127861 to 26128159, about 15 minutes before 26128234), as currency0 per 1e18 raw currency1 in raw units?

Answer

1,000,144,359,147.35

the spot price of v4 pool 0x56fc…48c1 at the median of 13 blocks across the window: 1,000,144,359,147.35

1000144359147355448434188557521 uint256, 18 decimals

recipe
{"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1","samples":13} — write recipe exactly this.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1: currency0 is USDe 0x4c9edd5852cd905f086c759e8383e09bff1e68b3 (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
compute
scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1 --samples 13
poolId
0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1
samples
13
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. pinnedblocks 26,127,861 to 26,128,159 to · on Ethereum mainnet
  2. answered146 of 147 agreed140 needed
    #5591,000,144,359,147.35
    #191,000,144,359,147.35
    #2501,000,144,359,147.35
    #7351,000,144,359,147.35
    #15421,000,144,359,147.35
    142 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
    0xbc3c8370cc21e0df0d85ed43c88cdba028e28a795c9bb555137a61d29e1a5fc5415942a1a84a83422a1185181fc18e7bd688afebb6aeabc43cf65ea6854de9ce1b
    signed panel
    146 agreed · quorum 140 · 200 seats
    question hash
    0xfa446f632cdf17b5155a61bbffabd7a982aa3d0ad43019ea2afa9d2787e09401
    answer type
    uint256
    consumer
    none named; signed for the zero address