Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x225cc98f7d66b29fef96377becc7bf89582e2ab7b923a09aee9719fd80eb94ca (SPCX/SPACEHOOD, currency0/currency1) in blocks 80352154 through 80369990 inclusive, in raw units of currency0 (SPCX stock token, 18 decimals)?
Answer
20.28
amount0 summed over every Swap log of 0x8366…0951 came to 20.28
20288567409586616962 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":"0x225cc98f7d66b29fef96377becc7bf89582e2ab7b923a09aee9719fd80eb94ca"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x225cc98f7d66b29fef96377becc7bf89582e2ab7b923a09aee9719fd80eb94ca: currency0 is SPCX 0x4a0e65a3eccec6dbe60ae065f2e7bb85fae35eea, currency1 is SPACEHOOD 0xfe7e19cbce2f896c6c528bc355baf5a768291e18; fee 8388608; a LONG (long.xyz) stock-paired memecoin pool, hook 0x4e3468951d49f2eea976ed0d6e75ffcb44a9a544.
- compute
- Compute with scan.mjs --address 0x8366a39cc670b4001a1121b8f6a443a643e40951 --event "Swap(bytes32,address,int128,int128,uint160,uint128,int24,uint24)" --topic1 0x225cc98f7d66b29fef96377becc7bf89582e2ab7b923a09aee9719fd80eb94ca --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
- pinnedblocks 80,352,154 to 80,369,990on Robinhood Chain
- answered140 of 140 agreed140 needed
- 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
- 0x8e7550a23b6088171bc0a83edf3d3562cd8916101ce5e1f77e5b6916edabcc364f49b27470330f99cac5a000c856e64d95b8d6115292a756e49c6390d406d7d01c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0xd930d3a97333b1c264b4b5a05dd69ae6ad4e926c7144ab3fd57091eb213ea2b1
- answer type
- uint256
- consumer
- none named; signed for the zero address