From e8d3d877aa719d07b37bfe582d222e6f7a1b78f0 Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Mon, 15 Feb 2021 16:30:41 +0100 Subject: [PATCH] check borrow err (#828) --- x/hard/keeper/borrow.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/hard/keeper/borrow.go b/x/hard/keeper/borrow.go index 63900ba1..40c42bc4 100644 --- a/x/hard/keeper/borrow.go +++ b/x/hard/keeper/borrow.go @@ -57,6 +57,9 @@ func (k Keeper) Borrow(ctx sdk.Context, borrower sdk.AccAddress, coins sdk.Coins } } } + if err != nil { + return err + } interestFactors := types.BorrowInterestFactors{} currBorrow, foundBorrow := k.GetBorrow(ctx, borrower)