Skip to content

Commit

Permalink
revert me
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Sep 8, 2022
1 parent 240f381 commit 2b9424d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x/twap/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ func computeArithmeticTwap(ctx sdk.Context, startRecord types.TwapRecord, endRec
} else {
accumDiff = endRecord.P1ArithmeticTwapAccumulator.Sub(startRecord.P1ArithmeticTwapAccumulator)
}
ctx.Logger().Info("computeArithmeticTwap", "accumDiff", accumDiff, "timeDelta", timeDelta)
return types.AccumDiffDivDuration(accumDiff, timeDelta), err
computed := types.AccumDiffDivDuration(accumDiff, timeDelta)
ctx.Logger().Info("computeArithmeticTwap", "accumDiff", accumDiff, "timeDelta", timeDelta, computed)

return computed, err
}

0 comments on commit 2b9424d

Please sign in to comment.