Oracle

f9d0779asigned

Across the pinned block window on Ethereum mainnet, what is the median Uniswap v4 spot price of the IMD token 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7 against native ETH, taken as 13 evenly spaced samples of pool id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 on PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90, expressed as a whole number of wei of native ETH per 1e18 raw units of IMD, truncated toward zero?

Answer

0.0033 ETH

the spot price of v4 pool 0xb07d…bfb3 at the median of 13 blocks across the window: 0.0033 ETH

3379616368898578 uint256, 18 decimals

recipe
univ4-spot with poolManager 0x000000000004444c5dc75cb358380d2e3de08a90, poolId 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3, invert false, samples 13. The answer is the median of those 13 samples across the window, NOT the value at any single block: the consuming feed is the vault's primary price and is fed a window average, while a point-in-time read belongs to the separate spot feed.
pool
The pool's currency0 is native ETH (the zero address) and currency1 is IMD 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7, fee 10000, tickSpacing 200. It is the deeper of the two live IMD pools. Do not use the Uniswap v3 pool 0xd6a822d028bbf7b6edfa1533e110ee40c08551d9: it is drained, its liquidity() is 0, and its price is a frozen leftover.
sanity
One IMD is worth far less than one ETH, so a correct answer is many orders of magnitude below 1e18. A result above 1e18 means the direction was inverted.
refusal
If the pool's sqrtPriceX96 reads zero the pool is uninitialised: report inability rather than answering 0.
direction
invert false yields currency0 per 1e18 raw currency1, which is wei of native ETH per 1e18 raw IMD. That is the direction wanted.
poolId
0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3
samples
13
poolManager
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. Pinnedblocks 26,168,287 to 26,168,886 to on Ethereum mainnet
  2. Answered69 of 69 agreed67 needed
    #7110.0033 ETH
    #30.0033 ETH
    #1800.0033 ETH
    #16040.0033 ETH
    #130.0033 ETH
    64 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
    0x476e6fd4331f162cca85d993ec0279712c6ec8765385bc47b38847e974ad2fc63815d6cea4aa3bd7c1e564f85453479e575e5186f6f686de5e370d34bbd8d11f1b
    signed panel
    69 agreed · quorum 67 · 100 seats
    question hash
    0xd2c294e1111aef65f39a95fecad63e2525ba7c2400d70b0b70091a0c32730a84
    answer type
    uint256
    consumer
    Ethereum mainnet · 0x070e0603737242b01abc1d223f7c92d63e86ec97