Oracle

5d9ff342signed

What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x7499938c352d5b5b8f0c648722aca5ee964ef9b85c3a3041f1ec379726291d9d (AMC/USDG, currency0/currency1) in blocks 80343236 through 80361072 inclusive, in raw units of currency0 (AMC stock token, 18 decimals)?

Answer

32,828.36

amount0 summed over every Swap log of 0x8366…0951 came to 32,828.36

32828365664684565091573 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":"amount0","abs":true,"filter":{"id":"0x7499938c352d5b5b8f0c648722aca5ee964ef9b85c3a3041f1ec379726291d9d"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x7499938c352d5b5b8f0c648722aca5ee964ef9b85c3a3041f1ec379726291d9d: currency0 is AMC 0x05a3d1cd21d0c88145e82600e62e7e496e0f222b, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 1000; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x7499938c352d5b5b8f0c648722aca5ee964ef9b85c3a3041f1ec379726291d9d --sum data:0 --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
amount0
address
0x8366a39cc670b4001a1121b8f6a443a643e40951

Work

  1. pinnedblocks 80,343,236 to 80,361,072on Robinhood Chain
  2. answered141 of 141 agreed140 needed
    #50132,828.36
    #24832,828.36
    #99332,828.36
    #40432,828.36
    #140932,828.36
    136 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
    0x880cc42aae90bd83ab1b71ecdb2d491f607c3f387e5a781f16d5a5996c6d0be144f37f714c9938b8c13d9b06bf8008d7432eb42289763c1446b669435c5222971c
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x8e4582cecc2fa41799278f30cd5111d277f65cb48f6d9cf16c3e748f5a0ec42a
    answer type
    uint256
    consumer
    none named; signed for the zero address