Oracle

7fcce4e1signed

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e (SCHIFFY/GLD, currency0/currency1) in blocks 80352154 through 80369990 inclusive, in raw units of currency1 (GLD stock token, 18 decimals)?

Answer

23.27

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

23279666350245422487 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":"0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e: currency0 is SCHIFFY 0x42afa2124ca5a2b83898e46b2da9a190995b1e18, currency1 is GLD 0xc9a981fee1f9dec688bb123ccdecc63d0debfc4e; 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 0xc749412e31087a6e6f9210af575bc9100159fbc9f45da3ca8b26b31f3bf5777e --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,352,154 to 80,369,990on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #24423.27
    #188423.27
    #28123.27
    #71523.27
    #61323.27
    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
    0xfcf29d4244dce9e7f3fff2a9855ebd298f4e9e4b85b7fa481ecb79aa3140a3300de92682459927c88ada1c11cd3d2ca9427b829b693420fa7bfe5776006062601c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x796e00f57e9a2fa00a30791de19a88fbbe39a612d68140cf2f9b4c637f541fec
    answer type
    uint256
    consumer
    none named; signed for the zero address