Oracle

de61849bsigned

On Robinhood Chain, what was the Uniswap v4 spot price of pool 0x24107d152f14a76d292123265ae3f3c71f863fc2f4ef7ba49d64e78d28ea379e (ETH/USDG, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 80978991 to 81014392, about 30 minutes before 81032093), as currency1 per 1e18 raw currency0 in raw units?

Answer

0.0000000027

the spot price of v4 pool 0x2410…379e at the median of 5 blocks across the window: 0.0000000027

2707499671 uint256, 18 decimals

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

Work

  1. pinnedblocks 80,978,991 to 81,014,392on Robinhood Chain
  2. answered143 of 143 agreed140 needed
    #14330.0000000027
    #16410.0000000027
    #16310.0000000027
    #11990.0000000027
    #12700.0000000027
    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
    0x55dd36f4e794408b7417ef8d4695336fddacfd4c2ce187a665c33160ed6189e3298bd5b40db03f2238161ac39b97301a2c84ecc6b36f8a172b007f86c10ef9681c
    signed panel
    143 agreed · quorum 140 · 200 seats
    question hash
    0xc4dfe4b30598d5a48faa96151e5ff8f175d4f4a69a0a40d4d6f31cfcb1bdb246
    answer type
    uint256
    consumer
    none named; signed for the zero address