Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb (USDC/USDG, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26127338 to 26127636, about 2 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
1,000,112,544,578.81
the spot price of v4 pool 0xeda6…7edb at the median of 13 blocks across the window: 1,000,112,544,578.81
1000112544578817717 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb: currency0 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals), currency1 is USDG 0xe343167631d89b6ffc58b88d6b7fb0228795491d (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb --samples 13
- poolId
- 0xeda62d2906d0edf26d40c793d581609552a44a87f618a98ff76ebe8dde4b7edb
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,338 to 26,127,636 to · on Ethereum mainnet
- answered144 of 144 agreed140 needed
- signed
by 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
- 0x040739a414ad0b5bab6d6742fab77aee7468f755f976768ccde974f6b16c326738f8e71c56c7be53f25fc9f82a4e26632326d26e41d2f3888f999db33d4288721c
- signed panel
- 144 agreed · quorum 140 · 200 seats
- question hash
- 0x7a20c0a56fc707fbd09950dde9aa793d9095eef0e8370ed7304f20e7226c7be9
- answer type
- uint256
- consumer
- none named; signed for the zero address