Skip to content

Commit

Permalink
add isSlTpLimitOrdersEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Apr 26, 2024
1 parent dc5389d commit 539dc8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ data class EnvironmentFeatureFlags(
val useOptimisticCollateralCheck: Boolean,
val withdrawalSafetyEnabled: Boolean,
val isSlTpEnabled: Boolean,
val isSlTpLimitOrdersEnabled: Boolean,
) {
companion object {
fun parse(
Expand All @@ -117,13 +118,15 @@ data class EnvironmentFeatureFlags(
val useOptimisticCollateralCheck = parser.asBool(data?.get("useOptimisticCollateralCheck")) ?: false
val withdrawalSafetyEnabled = parser.asBool(data?.get("withdrawalSafetyEnabled")) ?: false
val isSlTpEnabled = parser.asBool(data?.get("isSlTpEnabled")) ?: false
val isSlTpLimitOrdersEnabled = parser.asBool(data?.get("isSlTpLimitOrdersEnabled")) ?: false

return EnvironmentFeatureFlags(
reduceOnlySupported,
usePessimisticCollateralCheck,
useOptimisticCollateralCheck,
withdrawalSafetyEnabled,
isSlTpEnabled,
isSlTpLimitOrdersEnabled,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class AbacusMockData {
useOptimisticCollateralCheck = true,
withdrawalSafetyEnabled = true,
isSlTpEnabled = true,
isSlTpLimitOrdersEnabled = true,
),
)
}

0 comments on commit 539dc8e

Please sign in to comment.