Oracle

18d22299signed

What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xd5effce87036cd858146c0c15fa825c231a9de1843200ca108e431e431331e8e (TSLA/USDG, currency0/currency1) in blocks 80218377 through 80236213 inclusive, in raw units of currency0 (TSLA stock token, 18 decimals)?

Answer

1.42

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

1425957810172129676 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":"0xd5effce87036cd858146c0c15fa825c231a9de1843200ca108e431e431331e8e"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xd5effce87036cd858146c0c15fa825c231a9de1843200ca108e431e431331e8e: currency0 is TSLA 0x322f0929c4625ed5bad873c95208d54e1c003b2d, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 8388608; hook 0x67d86050d22d574df046f3d90f722045f714e080.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xd5effce87036cd858146c0c15fa825c231a9de1843200ca108e431e431331e8e --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,218,377 to 80,236,213on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #1741.42
    #4431.42
    #18711.42
    #16731.42
    #16421.42
    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
    0x4c2fdeb7c96da62002b30925b6b86e80d49f447c2770273e39e90134182b1ba158da89d318e7c5de57696cfc1723613c060ff48280dfe555c068e52da60453da1b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x160aa9d4df188889e66eae2340b4044c355a0fe56f9cc06ce0d49d7bfd7f486c
    answer type
    uint256
    consumer
    none named; signed for the zero address