Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x053f6a47ccba79e7d5d623173ed6dd5a31cf19c28bae0fb8276f4506295f90da (ETH/UNI, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26127188 to 26127486, about 2.5 hours before 26128234), as currency0 per 1e18 raw currency1 in raw units?
Answer
0.0033
the spot price of v4 pool 0x053f…90da at the median of 9 blocks across the window: 0.0033
3309601623757847 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x053f6a47ccba79e7d5d623173ed6dd5a31cf19c28bae0fb8276f4506295f90da","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x053f6a47ccba79e7d5d623173ed6dd5a31cf19c28bae0fb8276f4506295f90da: currency0 is native ETH (address 0) (18 decimals), currency1 is UNI 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x053f6a47ccba79e7d5d623173ed6dd5a31cf19c28bae0fb8276f4506295f90da --samples 9
- poolId
- 0x053f6a47ccba79e7d5d623173ed6dd5a31cf19c28bae0fb8276f4506295f90da
- samples
- 9
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- pinnedblocks 26,127,188 to 26,127,486 to · on Ethereum mainnet
- answered143 of 143 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
- 0x478ee279ae1c873627f49ca0fc35c62b8a99bbddc3127a8c30a1f012f4af4fbf7c358afcaf9e8e2d1f9d7714e662914372b4e4e510495541a3053def17daf51e1c
- signed panel
- 143 agreed · quorum 140 · 200 seats
- question hash
- 0x508b27c454295eea1b28eda189565c3365a301896099b4798b24057df2443d09
- answer type
- uint256
- consumer
- none named; signed for the zero address