Oracle

7ec5fd3bsigned

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

Answer

18.58

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

18585093791854086273 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":"0x1a281ccd1ece901f22773ea4eae2ee14c821195a401496b80f37157b47e85084"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x1a281ccd1ece901f22773ea4eae2ee14c821195a401496b80f37157b47e85084: currency0 is native ETH (address 0) (18 decimals), currency1 is HODL 0x5a1aae70b01bbc87b762531178eaae20102a34b6 (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x1a281ccd1ece901f22773ea4eae2ee14c821195a401496b80f37157b47e85084 --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. answered142 of 142 agreed140 needed
    #157418.58
    #72418.58
    #125918.58
    #24418.58
    #70518.58
    137 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
    0x7744a889e9d47972153905ca8abf4afe86e7260124deaff196d05526a5f4faaf6f038e81dfd04b7717ee191b09f9a1e17c3cdd97c1b474f413cd90fba7611e691c
    signed panel
    142 agreed · quorum 140 · 200 seats
    question hash
    0x46f3db978e3144f5d418dd7b99be96c45cf0ca8fdee20a19615d710003f03fcb
    answer type
    uint256
    consumer
    none named; signed for the zero address