From 1f5994e9e4f9192476190be344d50ba59a9e96bd Mon Sep 17 00:00:00 2001 From: mike-dydx Date: Wed, 22 May 2024 12:00:25 -0400 Subject: [PATCH] undo --- .../processor/wallet/account/AccountProcessor.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/AccountProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/AccountProcessor.kt index 672db1d60..8bd017a8e 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/AccountProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/wallet/account/AccountProcessor.kt @@ -1,7 +1,6 @@ package exchange.dydx.abacus.processor.wallet.account import com.ionspin.kotlin.bignum.decimal.toBigDecimal -import exchange.dydx.abacus.output.MarginMode import exchange.dydx.abacus.processor.base.BaseProcessor import exchange.dydx.abacus.protocols.ParserProtocol import exchange.dydx.abacus.responses.SocketInfo @@ -352,14 +351,6 @@ internal open class SubaccountProcessor(parser: ParserProtocol) : BaseProcessor( return quoteBalance } - internal fun calculateMarginType( - subaccount: Map, - payload: Map, - ): MarginMode { - print("reached") - return MarginMode.CROSS - } - private fun deriveQuoteBalance(assetPositions: Map?): Double? { val usdc = parser.asNativeMap(assetPositions?.get("USDC")) return if (usdc != null) { @@ -722,7 +713,6 @@ internal class V4SubaccountsProcessor(parser: ParserProtocol) : SubaccountProces ) } modified["quoteBalance"] = calculateQuoteBalance(modified, content) - modified["marginType"] = calculateMarginType(modified, content) return modified }