Oracle

13e55bd4signed

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

Answer

0.17

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

174521272436812772 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":"0x41242819331898fd61aa85a9dc36fe2072baee15778b9f640c31ac1dcefe1c4a"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x41242819331898fd61aa85a9dc36fe2072baee15778b9f640c31ac1dcefe1c4a: currency0 is native ETH (address 0), currency1 is AAPL 0xaf3d76f1834a1d425780943c99ea8a608f8a93f9; fee 800; no hook.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x41242819331898fd61aa85a9dc36fe2072baee15778b9f640c31ac1dcefe1c4a --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. answered140 of 140 agreed140 needed
    #13760.17
    #1250.17
    #15980.17
    #11400.17
    #5450.17
    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
    0x534a42542daddd2fcafcc2f05f6d7f476c9aa032379b327964b3c86846ee328719521d06741dcf7798b27fb6ad4b8afe45db845fd43ec81b77f857aa0ba1105a1c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x5bd4bac4dc817bcf4e393013bc2e6a4275d94b377f68331a243f2a7ac38aed98
    answer type
    uint256
    consumer
    none named; signed for the zero address