Skip to content

Commit

Permalink
Update x/incentives/keeper/distribute.go
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Lara <[email protected]>
  • Loading branch information
czarcas7ic and nicolaslara authored Mar 12, 2024
1 parent 7176de6 commit b9d5d1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/incentives/keeper/distribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,12 @@ func (k Keeper) distributeInternal(
} else {
// Cache hit, use the value

// This route does not exist in protorev so a zero value has been added when a cache miss occurred
if value.IsZero() {
continue
}
// Check if the underlying is worth enough in the token to be distributed.
if amtInt.LT(value) || value.IsZero() {
if amtInt.LT(value) {
continue
}
}
Expand Down

0 comments on commit b9d5d1a

Please sign in to comment.