Oracle
What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x7fb585f108d921de3b197cf7e26b5aebc96b035fec13f972b868e008ea062394 (SPY/INTC, currency0/currency1) in blocks 80271888 through 80289724 inclusive, in raw units of currency1 (INTC stock token, 18 decimals)?
Answer
174.35
amount1 summed over every Swap log of 0x8366…0951 came to 174.35
174358746460129467834 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":"0x7fb585f108d921de3b197cf7e26b5aebc96b035fec13f972b868e008ea062394"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x7fb585f108d921de3b197cf7e26b5aebc96b035fec13f972b868e008ea062394: currency0 is SPY 0x117cc2133c37b721f49de2a7a74833232b3b4c0c, currency1 is INTC 0xc72b96e0e48ecd4dc75e1e45396e26300bc39681; fee 500; no hook.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x7fb585f108d921de3b197cf7e26b5aebc96b035fec13f972b868e008ea062394 --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,271,888 to 80,289,724on 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
- 0xf86510f1a0e3aff4bfa1d9109601634398795541549063d844c3122ca810dffd4df2edd420d69c2af116f20c5db3376be3da641dab4542d07cb3dc1c544226551c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x17a25423b69fef6465a98b882d4fceba1f44af64c13874365c1d02bba238befd
- answer type
- uint256
- consumer
- none named; signed for the zero address