Oracle

8dd58bb8signed

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

Answer

8.85

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

8856562034321123356 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":"0x238c13b309c22221ce1c14827438edb85378f1ec2417c6533fa90370b031599e"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x238c13b309c22221ce1c14827438edb85378f1ec2417c6533fa90370b031599e: currency0 is native ETH (address 0) (18 decimals), currency1 is knightcat 0xeba916c94d75a5f48716913962356b3b6f41751b (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x238c13b309c22221ce1c14827438edb85378f1ec2417c6533fa90370b031599e --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,996,692 to 81,014,392on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #10808.85
    #4028.85
    #518.85
    #3558.85
    #5278.85
    135 more
  3. signed
    by the attester 0x5598…2982reproduced firstexpired

    Checking the signature in this browser.

    typed data
    the exact bytes a consumer verifies, as JSON
    attester
    0x5598aa9146215bc13eb26f2c692ad1461fd32982
    signature
    0x8ed514b55dfdbbee333cf5e979234bdfbdf1c801e001883ca5ab81f1fd8a6fcd5aaa304f8b9eb1543582b5be23f8721c947ac06c4e610452eee110ac2a2965281b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x9bbce7a05a851a3106afa9a979a85951c34549deca5640016d97d755657df345
    answer type
    uint256
    consumer
    none named; signed for the zero address