Oracle

2b844ff1signed

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

Answer

1,000,637,380,727.21

the spot price of v4 pool 0x0fb0…3239 at the median of 13 blocks across the window: 1,000,637,380,727.21

1000637380727217645 uint256, 6 decimals

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

Work

  1. Pinnedblocks 26,149,030 to 26,149,328 to on Ethereum mainnet
  2. Answered146 of 146 agreed140 needed
    #19751,000,637,380,727.21
    #18931,000,637,380,727.21
    #4811,000,637,380,727.21
    #3301,000,637,380,727.21
    #8461,000,637,380,727.21
    141 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
    0x7a3659f4fdbde7ebf59470e1ef67e675a38235719dd8037edc136f67244255e7523efe7c153f0b91bb46557b1e981fd4181e75d5713cceae5857d9da0d43cc161c
    signed panel
    146 agreed · quorum 140 · 200 seats
    question hash
    0x9d5c827ad8e90c1d02339da50a9aa869889a8a36447b4a71f25451ca883cca69
    answer type
    uint256
    consumer
    none named; signed for the zero address