Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90 on Ethereum mainnet emitted for pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d (ETH/USDC, currency0/currency1) in blocks 26148581 through 26148730 inclusive, in raw units of currency0 (ETH, 18 decimals)?
Answer
365.39
amount0 summed over every Swap log of 0x0000…8a90 came to 365.39
365398439784129010993 uint256, 18 decimals
- recipe
- {"kind":"log-sum","address":"0x000000000004444c5dc75cb358380d2e3de08a90","event":"event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)","sumArg":"amount0","abs":true,"filter":{"id":"0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d: currency0 is native ETH (address 0) (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
- compute
- scan.mjs --address 0x000000000004444c5dc75cb358380d2e3de08a90 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xdce6394339af00981949f5f3baf27e3610c76326a700af57e4b3e3ae4977f78d --sum data:0 --signed --abs
- abs
- true
- event
- event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)
- filter
- [object Object]
- sumArg
- amount0
- address
- 0x000000000004444c5dc75cb358380d2e3de08a90
Work
- Pinnedblocks 26,148,581 to 26,148,730 to on Ethereum mainnet
- Answered145 of 145 agreed140 needed
Signedby the attester 0x5598…2982reproduced firstexpired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0xf3528ca8fdc2411274d61384b8b22a877b6238de046856b9a9a681dc942dc22c173109b593feb48b28fa5fb96421567e23f47488f41e3943073f82511229688e1c
- signed panel
- 145 agreed · quorum 140 · 200 seats
- question hash
- 0x2d21ce6f6b669321c5a4a7f791257971b96390e21414f79b9e3b6bf7f7f45e5a
- answer type
- uint256
- consumer
- none named; signed for the zero address