check min borrow amount even when not using margin
This commit is contained in:
parent
52e871e566
commit
17b6861d88
|
@ -75,7 +75,11 @@ export const getTokenInMax = (
|
|||
inputBankVaultBalance,
|
||||
maxUiAmountWithBorrow
|
||||
)
|
||||
: Decimal.min(maxAmountWithoutMargin, inputBankVaultBalance)
|
||||
: Decimal.min(
|
||||
maxAmountWithoutMargin,
|
||||
inputBankVaultBalance,
|
||||
maxUiAmountWithBorrow
|
||||
)
|
||||
|
||||
const maxAmountWithBorrow = Decimal.min(
|
||||
maxUiAmountWithBorrow,
|
||||
|
|
Loading…
Reference in New Issue