Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed May 22, 2024
1 parent 2e9a239 commit 1f5994e
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -352,14 +351,6 @@ internal open class SubaccountProcessor(parser: ParserProtocol) : BaseProcessor(
return quoteBalance
}

internal fun calculateMarginType(
subaccount: Map<String, Any>,
payload: Map<String, Any>,
): MarginMode {
print("reached")
return MarginMode.CROSS
}

private fun deriveQuoteBalance(assetPositions: Map<String, Any>?): Double? {
val usdc = parser.asNativeMap(assetPositions?.get("USDC"))
return if (usdc != null) {
Expand Down Expand Up @@ -722,7 +713,6 @@ internal class V4SubaccountsProcessor(parser: ParserProtocol) : SubaccountProces
)
}
modified["quoteBalance"] = calculateQuoteBalance(modified, content)
modified["marginType"] = calculateMarginType(modified, content)
return modified
}

Expand Down

0 comments on commit 1f5994e

Please sign in to comment.