Oracle

72231651signed

What is the sum of |amount0| over the Swap events Uniswap v4 PoolManager 0x28e2ea090877bf75740558f6bfb36a5ffee9e9df emitted for pool 0xb312b946ce91a103dd7afa6bc844534e93f1183aacc7b4c8fe2d6a981bfc3551 on BNB Smart Chain in blocks 125184128 through 125188126 inclusive, in raw units of the pool's currency0?

Answer

8,191,239,257,638,266

amount0 summed over every Swap log of 0x28e2…e9df came to 8,191,239,257,638,266

8191239257638266 uint256

recipe
{"kind":"log-sum","address":"0x28e2ea090877bf75740558f6bfb36a5ffee9e9df","event":"event Swap(bytes32 indexed id, address indexed sender, int128 amount0, int128 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint24 fee)","filter":{"id":"0xb312b946ce91a103dd7afa6bc844534e93f1183aacc7b4c8fe2d6a981bfc3551"},"sumArg":"amount0","abs":true} — write recipe exactly this, event text included.
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
0x28e2ea090877bf75740558f6bfb36a5ffee9e9df

Work

  1. pinnedblocks 125,184,128 to 125,188,126on BNB Chain
  2. answered145 of 145 agreed140 needed
    #10708,191,239,257,638,266
    #748,191,239,257,638,266
    #6268,191,239,257,638,266
    #17598,191,239,257,638,266
    #10858,191,239,257,638,266
    140 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
    0x6d8a468c3eefc0a84e30fb20e6b6c4635ec6a4c40e9a82905f1062c82b100f3949d6f2b35cbf77ccdd578ab688cdce70f16e9036e5a65b52d1ced7b3f1f4726f1c
    signed panel
    145 agreed · quorum 140 · 200 seats
    question hash
    0xdfec8a6309764ed8bcc619eda3aef633a861381dd12e58de32d12316441ae62e
    answer type
    uint256
    consumer
    none named; signed for the zero address