Oracle

1cb54d30signed

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

Answer

303.18

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

303184790676011977183 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":"0x5291cfd042d8a771a510534ee31090bc4f4dc72724871e8f321aecfd12332a9a"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x5291cfd042d8a771a510534ee31090bc4f4dc72724871e8f321aecfd12332a9a: currency0 is native ETH (address 0) (18 decimals), currency1 is MOW 0x0b7c6c138dc75622f4200d157b13fb93e6bd94fa (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x5291cfd042d8a771a510534ee31090bc4f4dc72724871e8f321aecfd12332a9a --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,837,383 to 80,855,083on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #1554303.18
    #1049303.18
    #1673303.18
    #1637303.18
    #1846303.18
    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
    0x2a88fb109d1c0474706514d2d074dd82918d66946b510a2785765ab0c34a97562dca230d82d76d42c7114ef5bfe7354264a0c4f4e77cc527bc14590747d6e9ee1b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x1634d1aaa68d6232e2216ff6229992fe46b36e4d0d6a51b482afb601052df8cb
    answer type
    uint256
    consumer
    none named; signed for the zero address