Oracle
What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xdb9c34002d173981250969293af6f43f42a26f2110f19893bbe2ad373375e9e6 (USDG/CRCL, currency0/currency1) in blocks 80352154 through 80369990 inclusive, in raw units of currency1 (CRCL stock token, 18 decimals)?
Answer
97.51
amount1 summed over every Swap log of 0x8366…0951 came to 97.51
97516490667227625686 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":"0xdb9c34002d173981250969293af6f43f42a26f2110f19893bbe2ad373375e9e6"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xdb9c34002d173981250969293af6f43f42a26f2110f19893bbe2ad373375e9e6: currency0 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168, currency1 is CRCL 0xdf0992e440dd0be65bd8439b609d6d4366bf1cb5; fee 8388608; hook 0x5eb87f69be00df39981622fd60a8de4b7837e080.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xdb9c34002d173981250969293af6f43f42a26f2110f19893bbe2ad373375e9e6 --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,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
- 0x5bce0c53c492c54fc4c39258abd1275eb368ecbe8b3ca56a0ad30063352bd714436a51bf03069bf0a5d0e99d49b53aa7929d857503045049dc527f27ff98e0841b
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x400a16631dd805a701c481357eec6e7d9b06df84711dd5365e28b0ec4ff12c5a
- answer type
- uint256
- consumer
- none named; signed for the zero address