Oracle
On Base, what was the Uniswap v4 spot price of pool 0xe2654cc01616e962fbfcc4277c23062e59e70e39f87221d77b6d438705a5f286 (USDC/DRV, currency0/currency1) as the median over 9 evenly spaced blocks of the window (blocks 52208726 to 52210525, about 5 hours before 52219525), as currency0 per 1e18 raw currency1 in raw units?
Answer
0.4
the spot price of v4 pool 0xe265…f286 at the median of 9 blocks across the window: 0.4
404928 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x498581ff718922c3f8e6a244956af099b2652b2b","poolId":"0xe2654cc01616e962fbfcc4277c23062e59e70e39f87221d77b6d438705a5f286","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b; pool 0xe2654cc01616e962fbfcc4277c23062e59e70e39f87221d77b6d438705a5f286: currency0 is USDC 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 (6 decimals), currency1 is DRV 0x9d0e8f5b25384c7310cb8c6ae32c8fbeb645d083 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x498581ff718922c3f8e6a244956af099b2652b2b --pool-id 0xe2654cc01616e962fbfcc4277c23062e59e70e39f87221d77b6d438705a5f286 --samples 9
- poolId
- 0xe2654cc01616e962fbfcc4277c23062e59e70e39f87221d77b6d438705a5f286
- samples
- 9
- poolManager
- 0x498581ff718922c3f8e6a244956af099b2652b2b
Work
- pinnedblocks 52,208,726 to 52,210,525on Base
- 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
- 0xf3cab94b2fbac5c3b25eb436f84e32657579c506e28101a633014c0711ee1cd754695abf8a68582092657b789a8769cc824be2befdf788f0dc68bb14614a384f1b
- signed panel
- 144 agreed · quorum 140 · 200 seats
- question hash
- 0xfddd9cab9836b163994b55dfa274e3bd1126129f57f2b4bc3977e2629cd0a0f5
- answer type
- uint256
- consumer
- none named; signed for the zero address