Unverified Commit 2cdabd2a authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub
Browse files

gauge patch (#2797) (#2799)

(cherry picked from commit 6342691d

)

Co-authored-by: default avatarAdam Tucker <adam@osmosis.team>
parent cd3875ba
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment