Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90 on Ethereum mainnet emitted for pool 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9 (USDT/USDS, currency0/currency1) in blocks 26150001 through 26150150 inclusive, in raw units of currency0 (USDT, 6 decimals)?
Answer
2,764,387.6
amount0 summed over every Swap log of 0x0000…8a90 came to 2,764,387.6
2764387601598 uint256, 6 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":"0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9: currency0 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals), currency1 is USDS 0xdc035d45d973e3ec169d2276ddab16f1e407384f (18 decimals).
- compute
- scan.mjs --address 0x000000000004444c5dc75cb358380d2e3de08a90 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x3b1b1f2e775a6db1664f8e7d59ad568605ea2406312c11aef03146c0cf89d5b9 --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,150,001 to 26,150,150 to on Ethereum mainnet
- Answered146 of 146 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
- 0x3d4ff1aa580b4b731736e4e3f133dec7bc3361761b741953729846ca39e68a0e0e872e941edd019771161d162da44bf8da44a6e15c406f598bac72b07e9239b61b
- signed panel
- 146 agreed · quorum 140 · 200 seats
- question hash
- 0xfbe2a6336b7cde12557695d86da819244422dfb84f39f789150e0ca196922928
- answer type
- uint256
- consumer
- none named; signed for the zero address