From 2cdabd2a08cf32fce0e2b0397d9a2ad43fa6294e Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Tue, 20 Sep 2022 10:43:25 -0500
Subject: [PATCH] gauge patch (#2797) (#2799)

(cherry picked from commit 6342691d901eb3d4316d0619787e26c1e3668ebd)

Co-authored-by: Adam Tucker <adam@osmosis.team>
---
 x/incentives/types/gauge.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go
index bf640415a..058615ab7 100644
--- a/x/incentives/types/gauge.go
+++ b/x/incentives/types/gauge.go
@@ -31,12 +31,12 @@ func NewGauge(id uint64, isPerpetual bool, distrTo lockuptypes.QueryCondition, c
 
 // IsUpcomingGauge returns true if the gauge's distribution start time is after the provided time.
 func (gauge Gauge) IsUpcomingGauge(curTime time.Time) bool {
-	return curTime.Before(gauge.StartTime) || curTime.Equal(gauge.StartTime)
+	return curTime.Before(gauge.StartTime)
 }
 
 // IsActiveGauge returns true if the gauge is in an active state during the provided time.
 func (gauge Gauge) IsActiveGauge(curTime time.Time) bool {
-	if curTime.After(gauge.StartTime) && (gauge.IsPerpetual || gauge.FilledEpochs < gauge.NumEpochsPaidOver) {
+	if curTime.After(gauge.StartTime) || curTime.Equal(gauge.StartTime) && (gauge.IsPerpetual || gauge.FilledEpochs < gauge.NumEpochsPaidOver) {
 		return true
 	}
 	return false
-- 
GitLab