From 26e88c617752ddd282cfbbea0395c18fe4db7ffc Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Wed, 24 Feb 2021 11:25:40 -0700 Subject: [PATCH] fix: check correct time elpased condition (#853) --- x/incentive/keeper/rewards.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/incentive/keeper/rewards.go b/x/incentive/keeper/rewards.go index 9df65385..831c9fdb 100644 --- a/x/incentive/keeper/rewards.go +++ b/x/incentive/keeper/rewards.go @@ -662,7 +662,7 @@ func (k Keeper) ZeroHardLiquidityProviderClaim(ctx sdk.Context, claim types.Hard func CalculateTimeElapsed(start, end, blockTime time.Time, previousAccrualTime time.Time) sdk.Int { if (end.Before(blockTime) && (end.Before(previousAccrualTime) || end.Equal(previousAccrualTime))) || - (start.After(previousAccrualTime)) || + (start.After(blockTime)) || (start.Equal(blockTime)) { return sdk.ZeroInt() }