Potential bug in core.ts
coreycaplan3 opened this issue · 1 comments
coreycaplan3 commented
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