Skip to content

Commit

Permalink
add isSlTpLimitOrdersEnabled feature flag (#320)
Browse files Browse the repository at this point in the history
* add isSlTpLimitOrdersEnabled

* bump version
  • Loading branch information
mike-dydx authored Apr 26, 2024
1 parent 861b912 commit 7d3a873
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.6.49"
version = "1.6.50"

repositories {
google()
Expand Down
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,
),
)
}
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'v4_abacus'
spec.version = '1.6.49'
spec.version = '1.6.50'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 7d3a873

Please sign in to comment.