Oracle

2b5216ddsigned

What is the sum of |amount1| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x8e36bc9877b9383ae306dd937d40ab0e9df65811e7fdfb6bad25e7102bc398b2 (USDG/MU, currency0/currency1) in blocks 80254051 through 80271887 inclusive, in raw units of currency1 (MU stock token, 18 decimals)?

Answer

0.023

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

23788692611988181 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":"0x8e36bc9877b9383ae306dd937d40ab0e9df65811e7fdfb6bad25e7102bc398b2"}} — write recipe exactly this, event text included.
pool
PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x8e36bc9877b9383ae306dd937d40ab0e9df65811e7fdfb6bad25e7102bc398b2: currency0 is USDG 0x5fc5360d0400a0fd4f2af552add042d716f1d168, currency1 is MU 0xff080c8ce2e5feadaca0da81314ae59d232d4afd; fee 8388608; hook 0x5eb87f69be00df39981622fd60a8de4b7837e080.
compute
Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x8e36bc9877b9383ae306dd937d40ab0e9df65811e7fdfb6bad25e7102bc398b2 --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
    #6950.023
    #9350.023
    #9690.023
    #14300.023
    #15780.023
    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
    0xbdebdf24cdde2017763bf3ab04f43ad2aa6395a0606ee9dee14c93c723d9601160c29440b3274b37238a7c2c083191a441c24ac40c30fc24398f3cf8df1234e41b
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0xd35cc271a7e8bf07297185104769e13ed36c7348e64e82ebfe2d10b505e5c4d2
    answer type
    uint256
    consumer
    none named; signed for the zero address