Skip to content

Commit

Permalink
fix: more epsilon (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo authored Oct 17, 2024
1 parent 455ae5b commit 87df8d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.13.1"
version = "1.13.2"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ object VaultDepositWithdrawFormValidator {
}

val amountToUse = if (vaultAccount?.withdrawableUsdc != null &&
vaultAccount.withdrawableUsdc - amount >= 0 &&
vaultAccount.withdrawableUsdc - amount >= -EPSILON_FOR_ERRORS &&
vaultAccount.withdrawableUsdc - amount <= 0.01
) {
vaultAccount.withdrawableUsdc
Expand Down Expand Up @@ -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())
}
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.13.1'
spec.version = '1.13.2'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 87df8d9

Please sign in to comment.