check borrow err (#828)

This commit is contained in:
Denali Marsh 2021-02-15 16:30:41 +01:00 committed by GitHub
parent 94999b6b02
commit e8d3d877aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)