Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634 (USDC/USDT, currency0/currency1) the median over 5 evenly spaced blocks of the window (blocks 26119302 to 26119600, about 5 hours before 26121095), as currency0 per 1e18 raw currency1 in raw units?
Answer
999,877,647,127,398,375
the spot price of v4 pool 0x2b21…f634 at the median of 5 blocks across the window: 999,877,647,127,398,375
999877647127398375 uint256
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634","samples":5} — write recipe exactly this; compute with scan.mjs --v4-spot --samples 5.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; currency0 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7.
- poolId
- 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634
- samples
- 5
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,119,302 to 26,119,600 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
- 0x669112c5cfb1f863bbfc3dbe38a35a043396abc56dccfdad9fae143efb4ba178340a766b3d8410f7beefa6d67d3d5260f27661a79053db8910dfb87b0014023e1b
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x1841cd8e567541f7c8f6f29533f05f71e7513b21ca19e45c9f5e5a384595b9f4
- answer type
- uint256
- consumer
- none named; signed for the zero address