Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Sep 5, 2024
1 parent 43ee94e commit 7753c2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oracle/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func ComputeVWAP(prices types.AggregatedProviderPrices) types.CurrencyPairDec {
if _, ok := volumeSum[base]; !ok {
volumeSum[base] = math.LegacyZeroDec()
}
if tp.Volume.LT(minimumCandleVolume) {
tp.Volume = minimumCandleVolume
if tp.Volume.LT(minimumTickerVolume) {
tp.Volume = minimumTickerVolume
}

// weightedPrices[base] = Σ {P * V} for all TickerPrice
Expand Down

0 comments on commit 7753c2c

Please sign in to comment.