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)
|
const marketCapAfterOverpay = marketAsset.cap.used.plus(overpayAmount)
|
||||||
|
|
||||||
return marketAsset.cap.max.isLessThanOrEqualTo(marketCapAfterOverpay)
|
return marketAsset.cap.max.isLessThanOrEqualTo(marketCapAfterOverpay)
|
||||||
}, [marketAssets, asset.denom])
|
}, [marketAssets, asset.denom, totalDebt, totalDebtRepayAmount])
|
||||||
|
|
||||||
const maxRepayAmount = useMemo(() => {
|
const maxRepayAmount = useMemo(() => {
|
||||||
const maxBalance = repayFromWallet
|
const maxBalance = repayFromWallet
|
||||||
@ -127,6 +127,8 @@ function BorrowModal(props: Props) {
|
|||||||
lendBalance,
|
lendBalance,
|
||||||
isRepay,
|
isRepay,
|
||||||
totalDebtRepayAmount,
|
totalDebtRepayAmount,
|
||||||
|
overpayExeedsCap,
|
||||||
|
totalDebt,
|
||||||
walletBalances,
|
walletBalances,
|
||||||
asset.denom,
|
asset.denom,
|
||||||
repayFromWallet,
|
repayFromWallet,
|
||||||
|
Loading…
Reference in New Issue
Block a user