Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x564047346992762932e13bb64501e1d645d5436d5fde5a86c7dc14fe5e3920b4 (ETH/QINU, currency0/currency1) in blocks 80961290 through 80978990 inclusive, in raw units of currency0 (ETH, 18 decimals)?
Answer
42.04
amount0 summed over every Swap log of 0x8366…0951 came to 42.04
42042622074214443067 uint256, 18 decimals
- recipe
- {"kind":"log-sum","address":"0x8366a39cc670b4001a1121b8f6a443a643e40951","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":"0x564047346992762932e13bb64501e1d645d5436d5fde5a86c7dc14fe5e3920b4"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x564047346992762932e13bb64501e1d645d5436d5fde5a86c7dc14fe5e3920b4: currency0 is native ETH (address 0) (18 decimals), currency1 is QINU 0xeba1443b48385f9e978091dd3920c56d65a8ad57 (18 decimals).
- compute
- scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x564047346992762932e13bb64501e1d645d5436d5fde5a86c7dc14fe5e3920b4 --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
- 0x8366a39cc670b4001a1121b8f6a443a643e40951
Work
- pinnedblocks 80,961,290 to 80,978,990on Robinhood Chain
- answered142 of 142 agreed140 needed
- signed
by the attester 0x5598…2982reproduced firstexpired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0x7276656b7a2a8a33acfa78553a7708a6018529ed6bcea20c861a5e2d56a9c80174a213a7ee7d49121bf63b50804dd993e658a7675a12bcb824c3962f756dd1771c
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0x252b8d3df53af8b972fe53fd4f69cd1bdc2a0d50b017a88ef2d4dc48fb911642
- answer type
- uint256
- consumer
- none named; signed for the zero address