Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x71f9660f9535e3e81d720696a58ea80274da8b2c6eb7c3acb22611d977439a5c (ETH/NVDA, currency0/currency1) in blocks 80978991 through 80996691 inclusive, in raw units of currency0 (ETH, 18 decimals)?
Answer
9.25
amount0 summed over every Swap log of 0x8366…0951 came to 9.25
9258223053576184639 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":"0x71f9660f9535e3e81d720696a58ea80274da8b2c6eb7c3acb22611d977439a5c"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x71f9660f9535e3e81d720696a58ea80274da8b2c6eb7c3acb22611d977439a5c: currency0 is native ETH (address 0) (18 decimals), currency1 is NVDA 0xd0601ce157db5bdc3162bbac2a2c8af5320d9eec (18 decimals).
- compute
- scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x71f9660f9535e3e81d720696a58ea80274da8b2c6eb7c3acb22611d977439a5c --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,978,991 to 80,996,691on 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
- 0x28ed1463fa55bf0054025f8853cbb0235363650a967a0c8769d0bbe783bf636470c58e512a185e15f0d15bf1ebd5e77e1dbb121965963ec61e642374021db4921c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x6e3f5a0b818f1d752df3ee2efd57b36500e9b87a0718f385104791eb19d94fc8
- answer type
- uint256
- consumer
- none named; signed for the zero address