Oracle

1fb83260signed

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

Answer

31.52

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

31522217752797020821 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":"0x9136ac3e649882d73b81d5dcf2d73aef5e3054387401a30dbdafa4f744193b6d"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x9136ac3e649882d73b81d5dcf2d73aef5e3054387401a30dbdafa4f744193b6d: currency0 is NU 0x408c14038a04f7bd235329e26d2bf569ee20e250, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 8000; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x9136ac3e649882d73b81d5dcf2d73aef5e3054387401a30dbdafa4f744193b6d --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,289,725 to 80,307,561on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #79531.52
    #167331.52
    #198831.52
    #66831.52
    #191531.52
    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
    0x3a485604d7faf498d91e53b32296bbc27794c7978195c282c96e2bb087f88a0709a9fb0044563555e401392d488c35455b5c9bf166ee79fec464fc2b6f551f4e1c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0xb41e0c04ed2d57f38038d9e78d86db2169f84203b81c638dbbe2dc441092c466
    answer type
    uint256
    consumer
    none named; signed for the zero address