Oracle
On Ethereum mainnet, what was the Uniswap v4 spot price of pool 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9 (USDT/USDS, currency0/currency1) at the window's last block (blocks 26149329 to 26149627, about 2 hours before 26150225), as currency0 per 1e18 raw currency1 in raw units?
Answer
1
the spot price of v4 pool 0x3b1b…d5b9 at the closing block: 1
1000618 uint256, 6 decimals
- recipe
- {"kind":"univ4-spot","poolManager":"0x000000000004444c5dc75cb358380d2e3de08a90","poolId":"0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9"} — write recipe exactly this.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9: currency0 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals), currency1 is USDS 0xdc035d45d973e3ec169d2276ddab16f1e407384f (18 decimals).
- compute
- scan.mjs --v4-spot --pool-manager 0x000000000004444c5dc75cb358380d2e3de08a90 --pool-id 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9
- poolId
- 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9
- poolManager
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,149,329 to 26,149,627 to on Ethereum mainnet
- Answered146 of 146 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
- 0x54d689a6babf127aabb13237c6f0ea0aacbcbc8413f3a69f0f5111900b7e066b5807956815b40428a6ce8537b8cfea53e401c54fbe734bb3b36a6906b2649e981c
- signed panel
- 146 agreed · quorum 140 · 200 seats
- question hash
- 0x564460827a7da9d0abc83f27bd1dd9d3bb61e301b2b111a874ee12220eaf81dd
- answer type
- uint256
- consumer
- none named; signed for the zero address