Oracle
On Robinhood Chain, what was the Uniswap v4 spot price of pool 0xbac3aa3b91584a53a579b3c999a56756e954e59247e497bad1d25a4334bde551 (ETH/USDG, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 80943589 to 80978990, about 1.5 hours before 81032093), as currency0 per 1e18 raw currency1 in raw units?
Answer
370,609,259.7
the spot price of v4 pool 0xbac3…e551 at the median of 9 blocks across the window: 370,609,259.7
370609259707446469284437703 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x8366a39cc670b4001a1121b8f6a443a643e40951","poolId":"0xbac3aa3b91584a53a579b3c999a56756e954e59247e497bad1d25a4334bde551","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xbac3aa3b91584a53a579b3c999a56756e954e59247e497bad1d25a4334bde551: currency0 is native ETH (address 0) (18 decimals), currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x8366a39cc670b4001a1121b8f6a443a643e40951 --pool-id 0xbac3aa3b91584a53a579b3c999a56756e954e59247e497bad1d25a4334bde551 --samples 9
- poolId
- 0xbac3aa3b91584a53a579b3c999a56756e954e59247e497bad1d25a4334bde551
- samples
- 9
- poolManager
- 0x8366a39cc670b4001a1121b8f6a443a643e40951
Work
- pinnedblocks 80,943,589 to 80,978,990on Robinhood Chain
- answered142 of 142 agreed140 needed
- signed
by the attester 0x5598…2982reproduced firstexpired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0xa9343f3fc417de2e7e81abee73a8670d39c490d252f6f1ea89503dda806e4d0a385a65266abd392c05b1ec88cdc95afdf79bd27247fcc0024ead63ba8caa7c371b
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0x67a4efa5556a287a61536c3cee8145e4126525da771b9d3b8a1403c741e5722b
- answer type
- uint256
- consumer
- none named; signed for the zero address