Oracle
What is the sum of |amount0| over the Swap events the Uniswap v4 PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951 on Robinhood Chain emitted for pool 0x1fb9a45079b017a6661016ba7dea29e1c4864b0874c21f63e137a52e71c3395b (SPY/EARN, currency0/currency1) in blocks 80352154 through 80369990 inclusive, in raw units of currency0 (SPY stock token, 18 decimals)?
Answer
0.25
amount0 summed over every Swap log of 0x8366…0951 came to 0.25
259686519637625223 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":"0x1fb9a45079b017a6661016ba7dea29e1c4864b0874c21f63e137a52e71c3395b"}} — write recipe exactly this, event text included.
- pool
- PoolManager 0x8366a39cc670b4001a1121b8f6a443a643e40951; pool 0x1fb9a45079b017a6661016ba7dea29e1c4864b0874c21f63e137a52e71c3395b: currency0 is SPY 0x117cc2133c37b721f49de2a7a74833232b3b4c0c, currency1 is EARN 0xa3b6aee90017b72c0812dc1e013de70eb2917ba3; 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 0x1fb9a45079b017a6661016ba7dea29e1c4864b0874c21f63e137a52e71c3395b --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
- 0xe05acc7c69431d9dd06b8a60e8ef76151901085f46326c352c4c8ad158fd3fb3212c8ca65cc726b8bb7af205823435545257e37f434f21ae4d747815f4b1159a1c
- signed panel
- 140 agreed · quorum 140 · 200 seats
- question hash
- 0xcaa8b1c05859b33e8c0b343bf789a77c56b6a7c64f07d3b6b452b62118fb5616
- answer type
- uint256
- consumer
- none named; signed for the zero address