Uniswap/v2-subgraph

Potential bug in core.ts

coreycaplan3 opened this issue · 1 comments

https://github.com/Uniswap/uniswap-v2-subgraph/blob/a0c775d3bf2c9bac92d7f9d3a9ecde7e5296b8dd/src/mappings/core.ts#L532

The line:

token0DayData.dailyVolumeETH = token0DayData.dailyVolumeETH.plus(amount0Total.times(token1.derivedETH as BigDecimal))

references token1.derivedETH but I think it should instead be referencing token0.derivedETH for calculating the volume of token0 in terms of ETH.

bmino commented

This looks incorrect to me as well