Oracle

3e682dfesigned

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x40a433930370f6cdf0a78debc2c6dd599c23bd428c0d67dd8b5373e4f101557f (musebook/META, currency0/currency1) in blocks 80307562 through 80325398 inclusive, in raw units of currency1 (META stock token, 18 decimals)?

Answer

3.11

amount1 summed over every Swap log of 0x8366…0951 came to 3.11

3113465604964643689 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":"amount1","abs":true,"filter":{"id":"0x40a433930370f6cdf0a78debc2c6dd599c23bd428c0d67dd8b5373e4f101557f"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x40a433930370f6cdf0a78debc2c6dd599c23bd428c0d67dd8b5373e4f101557f: currency0 is musebook 0x91a2dae9699f0b82540b5886b0d8759c22820ba3, currency1 is META 0xc0d6457c16cc70d6790dd43521c899c87ce02f35; fee 8388608; a LONG (long.xyz) stock-paired memecoin pool, hook 0x4e3468951d49f2eea976ed0d6e75ffcb44a9a544.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x40a433930370f6cdf0a78debc2c6dd599c23bd428c0d67dd8b5373e4f101557f --sum data:1 --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
amount1
address
0x8366a39cc670b4001a1121b8f6a443a643e40951

Work

  1. pinnedblocks 80,307,562 to 80,325,398on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #12973.11
    #453.11
    #663.11
    #13.11
    #17463.11
    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
    0x6f5a2ccec40e250ec734d02bc3078636a759def2ffa1c1a4eaa501c61863fbe464dceb3ffa7d81c3b40f94cf713694892c6be4d2edc281b657ca5d707c5761af1c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x97540c84344f1753c7aae777cbfdb724d1c1532d6c14a7ce0028d5de6fac5593
    answer type
    uint256
    consumer
    none named; signed for the zero address