Oracle

8e801aa4signed

What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90 on Ethereum mainnet emitted for pool 0x60446cf938c80775d2cf640580da230ca80d69de93f4683a23aa1abb7e47e57b (CLAUS/USDC, currency0/currency1) in blocks 26150001 through 26150150 inclusive, in raw units of currency0 (CLAUS, 18 decimals)?

Answer

2,376,267.34

amount0 summed over every Swap log of 0x0000…8a90 came to 2,376,267.34

2376267342922956496098208 uint256, 18 decimals

recipe
{"kind":"log-sum","address":"0x000000000004444c5dc75cb358380d2e3de08a90","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":"0x60446cf938c80775d2cf640580da230ca80d69de93f4683a23aa1abb7e47e57b"}} — write recipe exactly this, event text included.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x60446cf938c80775d2cf640580da230ca80d69de93f4683a23aa1abb7e47e57b: currency0 is CLAUS 0x1b54e762aa34cf6e28e9c082f2848e28e45da6b8 (18 decimals), currency1 is USDC 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 (6 decimals).
compute
scan.mjs --address 0x000000000004444c5dc75cb358380d2e3de08a90 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x60446cf938c80775d2cf640580da230ca80d69de93f4683a23aa1abb7e47e57b --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
0x000000000004444c5dc75cb358380d2e3de08a90

Work

  1. Pinnedblocks 26,150,001 to 26,150,150 to on Ethereum mainnet
  2. Answered140 of 140 agreed140 needed
    #15422,376,267.34
    #12742,376,267.34
    #14012,376,267.34
    #11292,376,267.34
    #1262,376,267.34
    135 more
  3. Signedby the attester 0x5598…2982reproduced firstexpired

    Checking the signature in this browser.

    typed data
    the exact bytes a consumer verifies, as JSON
    attester
    0x5598aa9146215bc13eb26f2c692ad1461fd32982
    signature
    0x8b511ea3a6634503de363d98442d71069d9af981f669b2491023b5822abdbf787163eca18fd4201fa21137829580378dfcf0a319a13f2654383c7074c1f0873f1c
    signed panel
    140 agreed · quorum 140 · 200 seats
    question hash
    0x9234ffeb8f83452551b5595e1bb48ca3655bb74a39ffb0e5d885452eda609302
    answer type
    uint256
    consumer
    none named; signed for the zero address