Oracle
What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xc105b8300ff65d750a0e4e63c7a879e20504069b770713464a5315e797735326 (USDG/MSTR, currency0/currency1) in blocks 80343236 through 80361072 inclusive, in raw units of currency1 (MSTR stock token, 18 decimals)?
Answer
228.38
amount1 summed over every Swap log of 0x8366…0951 came to 228.38
228384281014680512533 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":"0xc105b8300ff65d750a0e4e63c7a879e20504069b770713464a5315e797735326"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xc105b8300ff65d750a0e4e63c7a879e20504069b770713464a5315e797735326: currency0 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168, currency1 is MSTR 0xec262a75e413fafd0df80480274532c79d42da09; fee 2400; no hook.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xc105b8300ff65d750a0e4e63c7a879e20504069b770713464a5315e797735326 --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,343,236 to 80,361,072on 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
- 0x41e74ee95e5e066cdc3c1dbe09cb250da8ca7b5a1407428aa9168d3c8db7165e49b8b633347ddda060ff7639bda450e5c3826f878ec00532924350367e02a1241c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0x5194dfb4c54af23afd2615c50ec56391abdfc886ad7b0f092667ae2d7210fa93
- answer type
- uint256
- consumer
- none named; signed for the zero address