From 7753c2c293dbbfe937fcd761b055300af8b009ef Mon Sep 17 00:00:00 2001 From: rbajollari Date: Thu, 5 Sep 2024 16:15:38 -0400 Subject: [PATCH] lint --- oracle/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oracle/util.go b/oracle/util.go index 9e0df61..22aafe6 100644 --- a/oracle/util.go +++ b/oracle/util.go @@ -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