Oracle
On Base, what was the Uniswap v4 spot price of pool 0xbc6683f3fed27bbfdfb6d9f342a29c5f2c2f02de9f9d65fb35d77d4f43a7b51e (UMIA/USDC, 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
1,460,623,564,801.29
the spot price of v4 pool 0xbc66…b51e at the median of 9 blocks across the window: 1,460,623,564,801.29
1460623564801295391804105975707 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x498581ff718922c3f8e6a244956af099b2652b2b","poolId":"0xbc6683f3fed27bbfdfb6d9f342a29c5f2c2f02de9f9d65fb35d77d4f43a7b51e","samples":9} — write recipe exactly this.
- pool
- PoolManager 0x498581ff718922c3f8e6a244956af099b2652b2b; pool 0xbc6683f3fed27bbfdfb6d9f342a29c5f2c2f02de9f9d65fb35d77d4f43a7b51e: currency0 is UMIA 0x56ab53b77f07da3af732150e8aec4783eb5bba7d (18 decimals), currency1 is USDC 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x498581ff718922c3f8e6a244956af099b2652b2b --pool-id 0xbc6683f3fed27bbfdfb6d9f342a29c5f2c2f02de9f9d65fb35d77d4f43a7b51e --samples 9
- poolId
- 0xbc6683f3fed27bbfdfb6d9f342a29c5f2c2f02de9f9d65fb35d77d4f43a7b51e
- 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
- 0xe337a659555713caec344c65c95e9ca450f851975cdc098a9b5a2d5b3be789b550dde2d9aa3708252e2760662ff623f8963152fe199a0254d6fd8d90914bc9951b
- signed panel
- 144 agreed · quorum 140 · 200 seats
- question hash
- 0x1ef900ddb3b23d9b15a9273e77578adac250da05824058585342b5623ce24c75
- answer type
- uint256
- consumer
- none named; signed for the zero address