Oracle

f7aa1be5signed

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

Answer

230.82

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

230822172321574908496 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":"0x75f935c85b5c605531df0c0b0ed1768f4dad87b2bc90711c850f2bed6bfcee45"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x75f935c85b5c605531df0c0b0ed1768f4dad87b2bc90711c850f2bed6bfcee45: currency0 is native ETH (address 0) (18 decimals), currency1 is CRH 0xfdc5754d112ec8702809f19c81ff9f55be70c400 (18 decimals).
compute
scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x75f935c85b5c605531df0c0b0ed1768f4dad87b2bc90711c850f2bed6bfcee45 --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 83,510,569 to 83,528,162on Robinhood Chain
  2. Answered139 of 140 agreed140 needed
    #512230.82
    #1518230.82
    #783230.82
    #236230.82
    #367230.82
    135 more
  3. Signedby 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
    0x404ddf599abd7abfd3648391241135270a6c2248f98b6d6efa9b917e165c8bda5065f54ea71d341502e1caa01bbcbdb1f66371cc174ece6251fbabe176cc0bae1b
    signed panel
    139 agreed · quorum 140 · 200 seats
    question hash
    0x4893c27edf5607c613bff7bae975ab54311fcb1f9e0969860e682a569aee4036
    answer type
    uint256
    consumer
    none named; signed for the zero address