Merge branch 'main' of https://github.com/mars-protocol/mars-v2-frontend into develop
# Conflicts: # src/components/Trade/TradeModule/AssetSelector/AssetSelectorItem.tsx
This commit is contained in:
commit
b7a0f8523b
@ -113,7 +113,7 @@ function BorrowModal(props: Props) {
|
||||
const marketCapAfterOverpay = marketAsset.cap.used.plus(overpayAmount)
|
||||
|
||||
return marketAsset.cap.max.isLessThanOrEqualTo(marketCapAfterOverpay)
|
||||
}, [marketAssets, asset.denom])
|
||||
}, [marketAssets, asset.denom, totalDebt, totalDebtRepayAmount])
|
||||
|
||||
const maxRepayAmount = useMemo(() => {
|
||||
const maxBalance = repayFromWallet
|
||||
@ -127,6 +127,8 @@ function BorrowModal(props: Props) {
|
||||
lendBalance,
|
||||
isRepay,
|
||||
totalDebtRepayAmount,
|
||||
overpayExeedsCap,
|
||||
totalDebt,
|
||||
walletBalances,
|
||||
asset.denom,
|
||||
repayFromWallet,
|
||||
|
Loading…
Reference in New Issue
Block a user