Oracle

bde97c07signed

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

Answer

1.07

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

1079395435422654506 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":"0x8674c1c5544f3c9563565b5d4bd5916701d90b3559b072acf7cef5b4fc5b8dcd"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x8674c1c5544f3c9563565b5d4bd5916701d90b3559b072acf7cef5b4fc5b8dcd: currency0 is SPY 0x117cc2133c37b721f49de2a7a74833232b3b4c0c, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 8388608; hook 0xa0e8fbff13e24af2b5e61a72800e08a161bde080.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x8674c1c5544f3c9563565b5d4bd5916701d90b3559b072acf7cef5b4fc5b8dcd --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,182,703 to 80,200,539on Robinhood Chain
  2. answered135 of 147 agreed140 needed
    #8971.07
    #4101.07
    #2461.07
    #2651.07differedby a different recipe: log-sum
    #8801.07
    142 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
    0x984c3b72b256e2b456044c305390d082e037969abb597b91962352664dcdff8f278499024fd5b279c986ac38a64d2018bcf478ea1974f3b31ccc27648c9046b01b
    signed panel
    135 agreed · quorum 140 · 200 seats
    question hash
    0xeaa943b24e12355472d0e44db8fb5245f4b7fb5c672318685ba4a4b70aa2a912
    answer type
    uint256
    consumer
    none named; signed for the zero address