Oracle

7c827d2fsigned

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

Answer

97.51

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

97510823296394684997 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":"0x3df16f271060e4941c0386047def159f42e629dc0455db623c5b363eeacbcc1d"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x3df16f271060e4941c0386047def159f42e629dc0455db623c5b363eeacbcc1d: currency0 is native ETH (address 0) (18 decimals), currency1 is V4 0xc60ba256b44334a0cd2c7242e98b88f031abb006 (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x3df16f271060e4941c0386047def159f42e629dc0455db623c5b363eeacbcc1d --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
    #94697.51
    #189897.51
    #76097.51
    #61497.51
    #151897.51
    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
    0x3f108fe299fb4e46b339b1ba915d24d151aaee8674e2aa6477fa1ff9e3f9210d37f169d72c4ef5bdaf23e6a57627c1eac2b899d6121a6123ae31cc7eb4dcb44b1b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x2f038d92f9548c53686089c76881c9a6e3f3ef8d087bd2befb3ef031266bac20
    answer type
    uint256
    consumer
    none named; signed for the zero address