Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
aforaleka committed May 29, 2024
1 parent 24236cf commit cb2cecf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import exchange.dydx.abacus.utils.Logger
import kollections.JsExport
import kollections.iListOf
import kollections.iMutableListOf
import kollections.toIList
import kotlinx.serialization.Serializable

@JsExport
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package exchange.dydx.abacus.validator
import abs
import exchange.dydx.abacus.output.input.OrderSide
import exchange.dydx.abacus.output.input.OrderTimeInForce
import exchange.dydx.abacus.output.input.OrderType
import exchange.dydx.abacus.protocols.LocalizerProtocol
import exchange.dydx.abacus.protocols.ParserProtocol
Expand Down Expand Up @@ -559,19 +558,6 @@ internal class TriggerOrdersInputValidator(
}
}

private fun isStatefulOrder(orderType: OrderType, timeInForce: OrderTimeInForce): Boolean {
return when (orderType) {
OrderType.market -> false
OrderType.limit -> {
when (timeInForce) {
OrderTimeInForce.GTT -> true
else -> false
}
}
else -> true
}
}

private fun requiredTriggerToLiquidationPrice(type: OrderType?, side: OrderSide): RelativeToPrice? {
return when (type) {
OrderType.stopMarket ->
Expand Down

0 comments on commit cb2cecf

Please sign in to comment.