Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(cherry picked from commit 6342691)

Co-authored-by: Adam Tucker <[email protected]>
  • Loading branch information
mergify[bot] and czarcas7ic authored Sep 20, 2022
1 parent cd3875b commit 2cdabd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/incentives/types/gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cdabd2

Please sign in to comment.