Skip to content

Commit

Permalink
fix: check correct time elpased condition (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
karzak authored Feb 24, 2021
1 parent 0e718d3 commit 26e88c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/incentive/keeper/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 26e88c6

Please sign in to comment.