Oracle

a73f05f2signed

What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xd2fc01ee6f8400b6b4ea3b341a188568f2bd6c72b07b96741a82396fa6eb8f02 (ETH/IMD, currency0/currency1) in blocks 80987841 through 81005541 inclusive, in raw units of currency0 (ETH, 18 decimals)?

Answer

10.58

amount0 summed over every Swap log of 0x8366…0951 came to 10.58

10582908331542897688 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":"0xd2fc01ee6f8400b6b4ea3b341a188568f2bd6c72b07b96741a82396fa6eb8f02"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xd2fc01ee6f8400b6b4ea3b341a188568f2bd6c72b07b96741a82396fa6eb8f02: currency0 is native ETH (address 0) (18 decimals), currency1 is IMD 0x5f7bb59365ce557c26dbcaa4ee9d39a4b95b7127 (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xd2fc01ee6f8400b6b4ea3b341a188568f2bd6c72b07b96741a82396fa6eb8f02 --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,987,841 to 81,005,541on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #195310.58
    #12610.58
    #69510.58
    #94610.58
    #47010.58
    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
    0x1626d508acffd81783b70e5691552454dab8f084ea45193069a8e731a355af3342e1fda78161f76e5955cddd269bae25fa71ca83ce62bffbd693ce1c9f1ba4921c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x914a957310a01bd7753630059819b011aca1e9d31c037f2986a0e3b9e02ecbbf
    answer type
    uint256
    consumer
    none named; signed for the zero address