diff --git a/x/harvest/keeper/borrow.go b/x/harvest/keeper/borrow.go index 152eb379..bc7ac86e 100644 --- a/x/harvest/keeper/borrow.go +++ b/x/harvest/keeper/borrow.go @@ -231,7 +231,9 @@ func (k Keeper) ValidateBorrow(ctx sdk.Context, borrower sdk.AccAddress, amount func (k Keeper) IncrementBorrowedCoins(ctx sdk.Context, newCoins sdk.Coins) { borrowedCoins, found := k.GetBorrowedCoins(ctx) if !found { - k.SetBorrowedCoins(ctx, newCoins) + if !newCoins.Empty() { + k.SetBorrowedCoins(ctx, newCoins) + } } else { k.SetBorrowedCoins(ctx, borrowedCoins.Add(newCoins...)) }