Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d (ETH/USDC, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 26126740 to 26127038, about 4 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
369,546,143.25
the spot price of v4 pool 0xdce6…f78d at the median of 5 blocks across the window: 369,546,143.25
369546143256384520111580224 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d","samples":5} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d: currency0 is native ETH (address 0) (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d --samples 5
- poolId
- 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d
- samples
- 5
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,126,740 to 26,127,038 to · on Ethereum mainnet
- 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
- 0xdf968e59d70e2db49f815ce167ed4053d01c81c31cf1a2253f8d853a9ae21a487434b23066c548e852a88477f8567c341823706ebde70bd8968a5601013cc79a1c
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0x1cc2be9fc7b6f6475bc171dacf41b4d7f79139dfde05e18d705f1c2eddd74451
- answer type
- uint256
- consumer
- none named; signed for the zero address