Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1 (USDe/USDC, currency0/currency1) as the median over 13 evenly spaced blocks of the window (blocks 26149179 to 26149477, about 2.5 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
1,000,171,523,172.83
the spot price of v4 pool 0x56fc…48c1 at the median of 13 blocks across the window: 1,000,171,523,172.83
1000171523172834579531076472877 uint256, 18 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1","samples":13} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1: currency0 is USDe 0x4c9edd5852cd905f086c759e8383e09bff1e68b3 (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1 --samples 13
- poolId
- 0x56fc29b86900aa0afa6e20b020429bffba1105cfb45070492c67529b46eb48c1
- samples
- 13
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,149,179 to 26,149,477 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
- 0x926b7de74bcfe7bd8943986adfd7d97e0a486ff41545c0b7498ceac9d1503eb4526ea445cae45dd95bda5f35724904d1a27e1d73f384db26ec5fc0cd4e5c54d11b
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0x51a6bbdae30ef3a8ce60cd2e4570418c7353aa47f5f53ae6a84c37f803bfb6d0
- answer type
- uint256
- consumer
- none named; signed for the zero address