Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3 (WETH/USDT, currency0/currency1) as the median over 5 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
369,209,236.34
the spot price of v4 pool 0x9007…79b3 at the median of 5 blocks across the window: 369,209,236.34
369209236342555293036716636 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3","samples":5} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3: currency0 is WETH 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 (18 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3 --samples 5
- poolId
- 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3
- samples
- 5
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,861 to 26,128,159 to · on Ethereum mainnet
- answered143 of 143 agreed140 needed
- 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
- 0x584ae3d35785ee4ca01c68e19a6930744fc4f90e982b332bd269fa38f7359b44631bb8acb5ba162e5d9adf623c2b2de482d68930be5aedc2b25fa90c17f0affb1c
- signed panel
- 143 agreed · quorum 140 · 200 seats
- question hash
- 0xc7ddea7dd992859fb57bb7562d38be91dd2963f8f06aee211b2316c47fd8d21e
- answer type
- uint256
- consumer
- none named; signed for the zero address