Oracle

6d177897signed

What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90 on Ethereum mainnet emitted for pool 0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba (ETH/USDT, currency0/currency1) in blocks 26149478 through 26149627 inclusive, in raw units of currency0 (ETH, 18 decimals)?

Answer

15.42

amount0 summed over every Swap log of 0x0000…8a90 came to 15.42

15420421303861234911 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":"0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba"}} — write recipe exactly this, event text included.
pool
PoolManager 0x000000000004444c5dc75cb358380d2e3de08a90; pool 0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba: currency0 is native ETH (address 0) (18 decimals), currency1 is USDT 0xdac17f958d2ee523a2206206994597c13d831ec7 (6 decimals).
compute
scan.mjs --address 0x000000000004444c5dc75cb358380d2e3de08a90 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x2287a9620adcbf6250dc71be9ee9b2d3a1ec85a464fc6f5c06669e8d07b61bba --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,149,478 to 26,149,627 to on Ethereum mainnet
  2. Answered142 of 142 agreed140 needed
    #70915.42
    #187615.42
    #53415.42
    #195915.42
    #89615.42
    137 more
  3. Signedby 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
    0x99b35e3d161dba0a24ec9d4a02cb0c6bfd2d4f78a69584426cbb1a054b69d90124e8b108b9871116b0e9c6918068ab48a408a9f0bae909572b618f138a97d5551b
    signed panel
    142 agreed · quorum 140 · 200 seats
    question hash
    0x09d9a8a17e8704e165799ea7bff5f1099c5044b1e2d06dc84f904708002239ec
    answer type
    uint256
    consumer
    none named; signed for the zero address