Oracle
What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x98f19386c3dabb78ddda7a0117a668dbb858ea3363c3b88aaf8f745f738a411e (WETH/SPCX, currency0/currency1) in blocks 80254051 through 80271887 inclusive, in raw units of currency1 (SPCX stock token, 18 decimals)?
Answer
0.00000000011
amount1 summed over every Swap log of 0x8366…0951 came to 0.00000000011
117349188 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":"0x98f19386c3dabb78ddda7a0117a668dbb858ea3363c3b88aaf8f745f738a411e"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x98f19386c3dabb78ddda7a0117a668dbb858ea3363c3b88aaf8f745f738a411e: currency0 is WETH 0x0bd7d308f8e1639fab988df18a8011f41eacad73, currency1 is SPCX 0x4a0e65a3eccec6dbe60ae065f2e7bb85fae35eea; fee 2500; no hook.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x98f19386c3dabb78ddda7a0117a668dbb858ea3363c3b88aaf8f745f738a411e --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,254,051 to 80,271,887on 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
- 0xccf2573b0ff21d3e9b35ccd1cacdf5395dbfbfc411ca131f33e3e53236dbb8d116a2ed2264603c9524c45192c738ebad91f1f70374964cb3a62801f2988ef2181c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x4c8cf082b8024bdf49c3e55eea074bb83285bab2f08ea86740022549607d4174
- answer type
- uint256
- consumer
- none named; signed for the zero address