Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xc01cee6bf0ce6bae7497c2bf02d3825616569e90488246d8b40e2e47c1a44428 (SPCX/QQQ, currency0/currency1) in blocks 80352154 through 80369990 inclusive, in raw units of currency0 (SPCX stock token, 18 decimals)?
Answer
0.1
amount0 summed over every Swap log of 0x8366…0951 came to 0.1
108649349642821352 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":"0xc01cee6bf0ce6bae7497c2bf02d3825616569e90488246d8b40e2e47c1a44428"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xc01cee6bf0ce6bae7497c2bf02d3825616569e90488246d8b40e2e47c1a44428: currency0 is SPCX 0x4a0e65a3eccec6dbe60ae065f2e7bb85fae35eea, currency1 is QQQ 0xd5f3879160bc7c32ebb4dc785f8a4f505888de68; fee 2500; no hook.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xc01cee6bf0ce6bae7497c2bf02d3825616569e90488246d8b40e2e47c1a44428 --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,352,154 to 80,369,990on Robinhood Chain
- answered140 of 140 agreed140 needed
- signed
by 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
- 0xeb8de28deeafaf8521bc941cd52d1fecf35a1302d3618397dda6ecdadd3eb5ab16316fe139cbe29b31514a90657ae07646d3ebc7c662ea07401f2f4c8c284f431c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x9761f2691af4e5b60336834c39f18ed48707ad371d0b47f7f10f2797f10d23a8
- answer type
- uint256
- consumer
- none named; signed for the zero address