Skip to content

Commit a84ee12

Browse files
authored
Update marginValue calculation (#813)
1 parent 9de910c commit a84ee12

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ allprojects {
5353
}
5454

5555
group = "exchange.dydx.abacus"
56-
version = "1.14.3"
56+
version = "1.14.4"
5757

5858
repositories {
5959
google()

src/commonMain/kotlin/exchange.dydx.abacus/calculator/SubaccountCalculator.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,7 @@ internal class SubaccountCalculator(
435435
}
436436

437437
MarginMode.Cross -> {
438-
val maintenanceMarginFraction =
439-
configs?.maintenanceMarginFraction ?: Numeric.double.ZERO
440-
calculated.marginValue = maintenanceMarginFraction * notional
438+
calculated.marginValue = adjustedImf * notional
441439
}
442440

443441
else -> {

v4_abacus.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'v4_abacus'
3-
spec.version = '1.14.3'
3+
spec.version = '1.14.4'
44
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
55
spec.source = { :http=> ''}
66
spec.authors = ''

0 commit comments

Comments
 (0)