Oracle

80f8e145signed

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

Answer

80.77

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

80774770615192346895 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":"0xb81d873dfb2bb1aaf08804053f8940fd06bb30a2b5a0fafcdbcc7325544452b9"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0xb81d873dfb2bb1aaf08804053f8940fd06bb30a2b5a0fafcdbcc7325544452b9: currency0 is SPCX 0x4a0e65a3eccec6dbe60ae065f2e7bb85fae35eea, currency1 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168; fee 8388608; hook 0x5eb87f69be00df39981622fd60a8de4b7837e080.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0xb81d873dfb2bb1aaf08804053f8940fd06bb30a2b5a0fafcdbcc7325544452b9 --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,334,317 to 80,352,153on Robinhood Chain
  2. answered141 of 141 agreed140 needed
    #17480.77
    #139380.77
    #21180.77
    #157480.77
    #28080.77
    136 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
    0xd5c6f55f194b23844de702911ba4af001d4ba2eb7bd431b804f7945b47a25a1772da2d0db54d434109ea819096d266b0214c25cf4276f538cc245452d576f0f01b
    signed panel
    141 agreed · quorum 140 · 200 seats
    question hash
    0x8f7c69533506ecfe9238d8385d710b68da0433dbda598d36f6f3b40879e70528
    answer type
    uint256
    consumer
    none named; signed for the zero address