diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/VaultDepositWithdrawForm.kt b/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/VaultDepositWithdrawForm.kt index 21605d8d0..d33ef5c88 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/VaultDepositWithdrawForm.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/functional/vault/VaultDepositWithdrawForm.kt @@ -393,7 +393,7 @@ object VaultDepositWithdrawFormValidator { } } if (postOpVaultBalance >= -EPSILON_FOR_ERRORS && amount > 0 && - vaultAccount?.withdrawableUsdc != null && amount > vaultAccount.withdrawableUsdc + vaultAccount?.withdrawableUsdc != null && vaultAccount.withdrawableUsdc - amount < -EPSILON_FOR_ERRORS ) { errors.add(vaultFormValidationErrors.withdrawingLockedBalance()) }