# Conflicts:
#	src/components/Trade/TradeModule/AssetSelector/AssetSelectorItem.tsx
This commit is contained in:
Linkie Link 2023-12-12 15:03:36 +01:00
commit b7a0f8523b
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

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