Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 (ETH/IMD, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 26148731 to 26149029, about 4 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
0.0032
the spot price of v4 pool 0xb07d…bfb3 at the median of 9 blocks across the window: 0.0032
3227329087703218 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3: currency0 is native ETH (address 0) (18 decimals), currency1 is IMD 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3 --samples 9
- poolId
- 0xb07d640fd9e2eb9dc81b953c8e4fd006bdfeaf276010fb5418eb763ca15abfb3
- samples
- 9
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,148,731 to 26,149,029 to on Ethereum mainnet
- Answered142 of 142 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
- 0xca630bf615c97d0de298ac1f96f0bef8683abb3d193d02997d13d71c2261883b12d23302c2f727ddf769f551cd3d21714ac17dc3facd7d98d3188e0489ecb1731b
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0xa5e42d55bb6345aba292265c9a94ecbd530d6b20b7fc714bcf8dd50bb802c868
- answer type
- uint256
- consumer
- none named; signed for the zero address