Oracle

1a630cd9signed

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

Answer

0.23

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

231859273229638304 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":"0xdb47426894fd5d23e4f64650567620cd68deb2f79c833b1e6903544dbf12b9a0"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xdb47426894fd5d23e4f64650567620cd68deb2f79c833b1e6903544dbf12b9a0: currency0 is native ETH (address 0), currency1 is GLD 0xc9a981fee1f9dec688bb123ccdecc63d0debfc4e; fee 500; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xdb47426894fd5d23e4f64650567620cd68deb2f79c833b1e6903544dbf12b9a0 --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,271,888 to 80,289,724on Robinhood Chain
  2. answered141 of 141 agreed140 needed
    #19880.23
    #1740.23
    #15740.23
    #5590.23
    #16490.23
    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
    0x50ac74d799bba574fc068f55c7561fce9114e6e8030f96a52e75661bdb189ea14cf55b7d35bd6599db9188df8f68cc1d4d2e48c28ea4eff68df6e011cf0d06311b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0xfd874b1983e0200944bb252fe137b394bb3b42ec77469469b9ab154577d801ec
    answer type
    uint256
    consumer
    none named; signed for the zero address