Oracle

35994552signed

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0xed80cb489e051246f95fbe9e507d04120faac8742e4c20eae69d6738d7b36d6f (ETH/TSLA, currency0/currency1) in blocks 80254051 through 80271887 inclusive, in raw units of currency1 (TSLA stock token, 18 decimals)?

Answer

0.37

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

379861789073973043 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":"0xed80cb489e051246f95fbe9e507d04120faac8742e4c20eae69d6738d7b36d6f"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xed80cb489e051246f95fbe9e507d04120faac8742e4c20eae69d6738d7b36d6f: currency0 is native ETH (address 0), currency1 is TSLA 0x322f0929c4625ed5bad873c95208d54e1c003b2d; fee 1800; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xed80cb489e051246f95fbe9e507d04120faac8742e4c20eae69d6738d7b36d6f --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,254,051 to 80,271,887on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #7910.37
    #17820.37
    #330.37
    #1380.37
    #1920.37
    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
    0x5047cc102d4d41149d818ca1625a5dda52805805ed79af1152c9ca6819b9953f47f3642fb61b4d91fe1f37d60a98777e502d20d282e35a7b45ce2c8807082d361c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x8aac8a06f29880bd38b27c764576491f8115c4f34d39462114e5cc1b2d2a12f8
    answer type
    uint256
    consumer
    none named; signed for the zero address