Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3 (WETH/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26149329 to 26149627, about 2 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
409,854,065.08
the spot price of v4 pool 0x9007…79b3 at the median of 13 blocks across the window: 409,854,065.08
409854065087701027840368289 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3","samples":13} — 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 13
- poolId
- 0x90078845bceb849b171873cfbc92db8540e9c803ff57d9d21b1215ec158e79b3
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,149,329 to 26,149,627 to on Ethereum mainnet
- Answered144 of 144 agreed140 needed
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
- 0xb4cebcc00ecfab74982fd2f4a7f75f930e9e40b0952fd2b465a999ae06fddee423b186c9260f27d918acb3e8f97520976dd704065c614809afc4124b14e3df391b
- signed panel
- 144 agreed · quorum 140 · 200 seats
- question hash
- 0x4de0ac333c83682f7d24632412777814d22de12832d9831703c462abefb22c8b
- answer type
- uint256
- consumer
- none named; signed for the zero address