diff --git a/liquidity/ui/src/components/Accounts/Deposit/DepositForm.tsx b/liquidity/ui/src/components/Accounts/Deposit/DepositForm.tsx index 22c65fb02..5ccb86823 100644 --- a/liquidity/ui/src/components/Accounts/Deposit/DepositForm.tsx +++ b/liquidity/ui/src/components/Accounts/Deposit/DepositForm.tsx @@ -72,6 +72,9 @@ export function DepositFormUi({ if (collateralType?.symbol === 'SNX') { return snxBalance?.transferable; } + if (collateralType?.symbol === 'USDC') { + return tokenBalance?.add(accountCollateral?.availableCollateral); + } if (collateralType?.symbol !== 'WETH') { return tokenBalance; } @@ -79,7 +82,13 @@ export function DepositFormUi({ return undefined; } return tokenBalance.add(ethBalance); - }, [collateralType?.symbol, tokenBalance, ethBalance, snxBalance?.transferable]); + }, [ + collateralType?.symbol, + tokenBalance, + ethBalance, + snxBalance?.transferable, + accountCollateral?.availableCollateral, + ]); const [isOpenDeposit, setIsOpenDeposit] = useState(false);