Oracle

8a8e792fsigned

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x31f8624041c93e2abd0fb23540d259b069fa76c053eb7e3f5abc754d7194726b (ETH/AMC, currency0/currency1) in blocks 80254051 through 80271887 inclusive, in raw units of currency1 (AMC stock token, 18 decimals)?

Answer

0.0000019

amount1 summed over every Swap log of 0x8366…0951 came to 0.0000019

1929160827073 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":"0x31f8624041c93e2abd0fb23540d259b069fa76c053eb7e3f5abc754d7194726b"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x31f8624041c93e2abd0fb23540d259b069fa76c053eb7e3f5abc754d7194726b: currency0 is native ETH (address 0), currency1 is AMC 0x05a3d1cd21d0c88145e82600e62e7e496e0f222b; fee 8388608; hook 0xca89f079af00f752bfd3c345358dc38d4d73e080.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x31f8624041c93e2abd0fb23540d259b069fa76c053eb7e3f5abc754d7194726b --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

  1. pinnedblocks 80,254,051 to 80,271,887on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #3280.0000019
    #15090.0000019
    #16630.0000019
    #18300.0000019
    #14640.0000019
    135 more
  3. 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
    0xaad05943c0aa3add131b898bf140d3c8df2397cbba74b9314b96f865790d9ece3aa31fd41b6893ec4d09975e1a9e2575f82f3439a5e127ea3c5099c092fad6931c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0xae363cea006b710f2a4c47d7ff21473de773900efb1835b2d67ed776521733fb
    answer type
    uint256
    consumer
    none named; signed for the zero address