mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-13 03:25:20 +00:00
check borrow err (#828)
This commit is contained in:
parent
94999b6b02
commit
e8d3d877aa
@ -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{}
|
interestFactors := types.BorrowInterestFactors{}
|
||||||
currBorrow, foundBorrow := k.GetBorrow(ctx, borrower)
|
currBorrow, foundBorrow := k.GetBorrow(ctx, borrower)
|
||||||
|
Loading…
Reference in New Issue
Block a user