Oracle

597e575esigned

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

Answer

8.29

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

8297824788302120618 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":"0xaf8aa959b7e460fbbc61d25b9896a6e3f92cbf3a2bde01fa2b5ac811f2d6a986"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xaf8aa959b7e460fbbc61d25b9896a6e3f92cbf3a2bde01fa2b5ac811f2d6a986: currency0 is CPU 0x8eaa17be69ae9616cede4671e6d837bb89491e18, currency1 is INTC 0xc72b96e0e48ecd4dc75e1e45396e26300bc39681; fee 8388608; a LONG (long.xyz) stock-paired memecoin pool, hook 0x4e3468951d49f2eea976ed0d6e75ffcb44a9a544.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xaf8aa959b7e460fbbc61d25b9896a6e3f92cbf3a2bde01fa2b5ac811f2d6a986 --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. answered140 of 140 agreed140 needed
    #2118.29
    #4898.29
    #888.29
    #15128.29
    #5288.29
    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
    0x07e23379c09a2c722879711b7035d70356d177585407a07e9a889f4c34e6a522487d86bdec2a7da680b331c4633b67a8935ee9b02dc38c3abab7d614022ad7281b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x00ebf604c58bf2fa1a43c02880c226918ad5882d02b7e5682243680eb6877cd6
    answer type
    uint256
    consumer
    none named; signed for the zero address