Skip to content

Commit

Permalink
cap-free-collat
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleroooo committed Nov 7, 2024
1 parent 338b6e6 commit dc40261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.18"
version = "1.13.19"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal class SubaccountCalculatorV2(
calculated.initialRiskTotal = initialRiskTotal

val equity = valueTotal + quoteBalance
val freeCollateral = equity - initialRiskTotal
val freeCollateral = max(equity - initialRiskTotal, 0.0)

calculated.equity = equity
calculated.freeCollateral = freeCollateral
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.18'
spec.version = '1.13.19'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit dc40261

Please sign in to comment.