Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5 (USDC/USDT, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26127487 to 26127785, about 1.5 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
999,982,654,289.61
the spot price of v4 pool 0x395f…13a5 at the median of 13 blocks across the window: 999,982,654,289.61
999982654289615995 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5: currency0 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5 --samples 13
- poolId
- 0x395f91b34aa34a477ce3bc6505639a821b286a62b1a164fc1887fa3a5ef713a5
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,487 to 26,127,785 to · on Ethereum mainnet
- answered140 of 140 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
- 0x01fc076af67a1e2a65f64a50d642f951143b2fa9b536f9319ba2b68c21aa9f595b80cafca008a18d68f0c60a00a2d4ed46e8fa972d9f67436ce855321b854fb51b
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x86fc1d48e7fb6a6251cd87d4dd4f6623764faa9c8a9508ab9b7535a9409e379b
- answer type
- uint256
- consumer
- none named; signed for the zero address