diff --git a/x/incentives/types/gauge.go b/x/incentives/types/gauge.go index bf640415a48bbdcd6677e27e074b10798d542201..058615ab710461feb8ec46e3f1ba903167399824 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