Oracle
On Base, what was the Uniswap v4 spot price of pool 0xcfbc0e7ad8980a8f12822f5f2f593c341767e7c8c5e9944e16d4c38491834d15 (USDC/BI, currency0/currency1) as the median over 5 evenly spaced blocks of the window (blocks 52212326 to 52214125, about 3 hours before 52219525), as currency1 per 1e18 raw currency0 in raw units?
Answer
51,040,352,058,139,139,296,030,383,212.22
the spot price of v4 pool 0xcfbc…4d15 at the median of 5 blocks across the window: 51,040,352,058,139,139,296,030,383,212.22
51040352058139139296030383212224472 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x498581ff718922c3f8e6a244956af099b2652b2b","poolId":"0xcfbc0e7ad8980a8f12822f5f2f593c341767e7c8c5e9944e16d4c38491834d15","invert":true,"samples":5} — write recipe exactly this.
- pool
- PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b; pool 0xcfbc0e7ad8980a8f12822f5f2f593c341767e7c8c5e9944e16d4c38491834d15: currency0 is USDC 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 (6 decimals), currency1 is BI 0x98c2545c9eab108805bc65b015d36caa73518901 (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x498581ff718922c3f8e6a244956af099b2652b2b --pool-id 0xcfbc0e7ad8980a8f12822f5f2f593c341767e7c8c5e9944e16d4c38491834d15 --invert --samples 5
- invert
- true
- poolId
- 0xcfbc0e7ad8980a8f12822f5f2f593c341767e7c8c5e9944e16d4c38491834d15
- samples
- 5
- poolManager
- 0x498581ff718922c3f8e6a244956af099b2652b2b
Work
- pinnedblocks 52,212,326 to 52,214,125on Base
- answered141 of 141 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
- 0xb85df18878201ae2ce066f45ab9b98172fd139574e582673c74b91c6aaa9ecea613e22ac0c2ebaff81a78a0f2bd423795cad4ac14f254fe2ac9454b50eb6be0d1b
- signed panel
- 141 agreed · quorum 140 · 200 seats
- question hash
- 0x66a05faeeb6f821945f16fe1f45288f158921b2e62c2fb6b7e4160f4351b4ea7
- answer type
- uint256
- consumer
- none named; signed for the zero address