diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/calculator/TradeInputCalculator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/calculator/TradeInputCalculator.kt index 6067ae2d5..480d9a85b 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/calculator/TradeInputCalculator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/calculator/TradeInputCalculator.kt @@ -1217,7 +1217,7 @@ internal class TradeInputCalculator( return parser.asDouble(parser.value(position, "maxLeverage.current")) } else { val initialMarginFraction = - parser.asDouble(parser.value(market, "configs.initialMarginFraction")) + parser.asDouble(parser.value(market, "configs.effectiveInitialMarginFraction")) ?: return null return 1.0 / initialMarginFraction }