Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x0db4db4e3030c430026eaf77358d0c99c92553a48ae5fb59c4a31197e2288372 (ETH/STOCKER, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26127637 to 26127935, about 1 hour before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
0.0000025
the spot price of v4 pool 0x0db4…8372 at the median of 9 blocks across the window: 0.0000025
2582480271205 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x0db4db4e3030c430026eaf77358d0c99c92553a48ae5fb59c4a31197e2288372","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x0db4db4e3030c430026eaf77358d0c99c92553a48ae5fb59c4a31197e2288372: currency0 is native ETH (address 0) (18 decimals), currency1 is STOCKER 0x75e2fc69ff2ac12af65ba7d321bbf4f878c535d2 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x0db4db4e3030c430026eaf77358d0c99c92553a48ae5fb59c4a31197e2288372 --samples 9
- poolId
- 0x0db4db4e3030c430026eaf77358d0c99c92553a48ae5fb59c4a31197e2288372
- samples
- 9
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,637 to 26,127,935 to · on Ethereum mainnet
- answered140 of 140 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
- 0xb3dc7a745c4a0d7aca8da95391fea0a2195bce7ed5d51f98324ce9908c2b541e5057dc0364096ca79ee3f210157fa33bf010291bccac4f2e70f8b68d872e325b1c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0xeb66c9905421f30ada37a6a4a675543d2534aac911c73aac4db04bfa48adbebd
- answer type
- uint256
- consumer
- none named; signed for the zero address