Oracle

63c4021dsigned

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

Answer

90.91

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

90918492026620868421 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":"0x4f2a6398ba0e43122c27d1281484d545fc2d9615555524afefe0358b4205f4b7"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x4f2a6398ba0e43122c27d1281484d545fc2d9615555524afefe0358b4205f4b7: currency0 is NU 0x408c14038a04f7bd235329e26d2bf569ee20e250, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 2500; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x4f2a6398ba0e43122c27d1281484d545fc2d9615555524afefe0358b4205f4b7 --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,334,317 to 80,352,153on Robinhood Chain
  2. answered141 of 141 agreed140 needed
    #55990.91
    #96190.91
    #190590.91
    #29790.91
    #88690.91
    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
    0xf6a3366566a74387797c4702077c2502727970d451ae331fe833d4cad14a21cf3f1dced3e5a72073e928992e314fd3bd80b133cf4fd8ad18c49c9ed2c21223121c
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x6b63d8500466f531742740f319b7c94e69ee75f6e27debcf168e3d9ca51fe27e
    answer type
    uint256
    consumer
    none named; signed for the zero address