Oracle

eb2f2d8esigned

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x845b21902932be7f77f8ccbf793c17494f0ce7c6ffdcdb675d4dec701bc7601a (USDG/AAPL, currency0/currency1) in blocks 80254051 through 80271887 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

170301790672769382 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":"0x845b21902932be7f77f8ccbf793c17494f0ce7c6ffdcdb675d4dec701bc7601a"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x845b21902932be7f77f8ccbf793c17494f0ce7c6ffdcdb675d4dec701bc7601a: currency0 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168, currency1 is AAPL 0xaf3d76f1834a1d425780943c99ea8a608f8a93f9; fee 8388608; hook 0x64e9ae1066c47ac4a3cc0a5bd7b135908590e088.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x845b21902932be7f77f8ccbf793c17494f0ce7c6ffdcdb675d4dec701bc7601a --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,254,051 to 80,271,887on Robinhood Chain
  2. answered140 of 140 agreed140 needed
    #150.17
    #1970.17
    #4880.17
    #80.17
    #5980.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
    0xfdb23f0e77b3e38e292f37a372ebb8f1f24384de631318ae9bb00d2fbeb6696b2dce240c6a63009fe099127f070cff497122e5ebddd3ebe00993c0e8f7528ebf1c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x1dc695a7ce01b994e77e3f0b1a71fed136a67d2ff24627b006d83ace7e31cd8e
    answer type
    uint256
    consumer
    none named; signed for the zero address