Oracle
What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x647836c4965c512f0d82a2128abe7826eacf5a79d2dbed252a89ba5c591d1e87 (WETH/NVDA, currency0/currency1) in blocks 80218377 through 80236213 inclusive, in raw units of currency1 (NVDA stock token, 18 decimals)?
Answer
5
amount1 summed over every Swap log of 0x8366…0951 came to 5
5004059795420882893 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":"amount1","abs":true,"filter":{"id":"0x647836c4965c512f0d82a2128abe7826eacf5a79d2dbed252a89ba5c591d1e87"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x647836c4965c512f0d82a2128abe7826eacf5a79d2dbed252a89ba5c591d1e87: currency0 is WETH 0x0bd7d308f8e1639fab988df18a8011f41eacad73, currency1 is NVDA 0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec; fee 1000; no hook.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x647836c4965c512f0d82a2128abe7826eacf5a79d2dbed252a89ba5c591d1e87 --sum data:1 --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
- amount1
- address
- 0x8366a39cc670b4001a1121b8f6a443a643e40951
Work
- pinnedblocks 80,218,377 to 80,236,213on Robinhood Chain
- answered142 of 142 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
- 0x2be34c0f3c97cbaac410be153bece6241437b04aaff991285401a75e1bd9875d0901c5eac81a287f0e503306acb8a0daa98d2057fdb6ee4a90d3b88eb5d556d91b
- signed panel
- 142 agreed · quorum 140 · 200 seats
- question hash
- 0x7be13e3bdb1f890be0a385b55070153967fb23c9f13fda64b70f1017cb9fabfb
- answer type
- uint256
- consumer
- none named; signed for the zero address