Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634 (USDC/USDT, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 26149852 to 26150150, about 15 minutes before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
999,334,560,343.35
the spot price of v4 pool 0x2b21…f634 at the median of 5 blocks across the window: 999,334,560,343.35
999334560343359772 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634","samples":5} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634: currency0 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634 --samples 5
- poolId
- 0x2b21c65d9a7dc6926ee330a1c6e5a8037fd81774f3dc066536f800128e39f634
- samples
- 5
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,149,852 to 26,150,150 to on Ethereum mainnet
- Answered140 of 140 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
- 0x46eb7950ad0986174eb12b6bb230ff318b5c4333564759be8f569788c9bfa7f3140193fe7d1fae68bba7ce6e10a05fb4e5b478e7fbf5314d83facf34e85ce1701c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0xbd1d37b1f1b7a125f5ad51dad3904b7dcd3b5147cecc02f39117a6be8d25327c
- answer type
- uint256
- consumer
- none named; signed for the zero address