Oracle

5c3292c5signed

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

Answer

89.83

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

89837181488346815211 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":"0x9c89b04303dfa76f3f6fb02c2b77be0e8a00ab8fa00d507119acd54ab3e8640d"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x9c89b04303dfa76f3f6fb02c2b77be0e8a00ab8fa00d507119acd54ab3e8640d: currency0 is BONER 0x98096d17e191b3da1d5f99a6d7b3584351b11e18, currency1 is HIMS 0xccee82fe024c36fa15e1005ede3e9e4787e23d09; 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 0x9c89b04303dfa76f3f6fb02c2b77be0e8a00ab8fa00d507119acd54ab3e8640d --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,334,317 to 80,352,153on Robinhood Chain
  2. answered139 of 140 agreed140 needed
    #5989.83
    #65289.83
    #71189.83
    #135089.83
    #194089.83
    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
    0x1f1e8cf309a2bdd6536c72cd33848f1f74a10aa3c47a9b7dc4e4d7b4dd47d61716f86cd26fcb726b748ba7ed5d9cf899676d81b2744c33acd7bda56cbbc204f31b
    signed panel
    139 agreed · quorum 140 · 200 seats
    question hash
    0x28a2dfd648c120400e7dad122166e04bdf055811266ceb2438240541e5f8153d
    answer type
    uint256
    consumer
    none named; signed for the zero address