Oracle

4044beabsigned

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

Answer

0.82

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

824999929473538888 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":"0x8517f8071ae5b831b738052f12125e8e3d6c158b78728aa44ce3b25e5104d32e"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x8517f8071ae5b831b738052f12125e8e3d6c158b78728aa44ce3b25e5104d32e: currency0 is TSLA 0x322f0929c4625ed5bad873c95208d54e1c003b2d, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 3000; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x8517f8071ae5b831b738052f12125e8e3d6c158b78728aa44ce3b25e5104d32e --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,182,703 to 80,200,539on Robinhood Chain
  2. answered141 of 141 agreed140 needed
    #6710.82
    #4200.82
    #1260.82
    #4020.82
    #1540.82
    136 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
    0x1f72c720c6946325b8e14458e09d6f675a7ff7c3bbf154fcf455f0a6d1a33277021847be67e2f08a7fef36f2e6f9727a4c18973430cbfdea00d1d42ea7f17d981b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x2eb49c8fbc840fcb529367fbd58f705e5d9380d6885a78eb617ae6556f760260
    answer type
    uint256
    consumer
    none named; signed for the zero address