Skip to content

Commit

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

* bump version
  • Loading branch information
mike-dydx authored Apr 26, 2024
1 parent dfafafa commit 44e7f32
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 99 deletions.
4 changes: 2 additions & 2 deletions integration/iOS/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ EXTERNAL SOURCES:
:path: "~/v4-abacus"

SPEC CHECKSUMS:
abacus: a57d55b0ca0d3514389573a87c47507f88eb6b0a
abacus: 46f62be6dc9b3f888093eb2c9952d0267ab40670
CryptoSwift: 562f8eceb40e80796fffc668b0cad9313284cfa6

PODFILE CHECKSUM: 37d72c15b180e62a4c42b8fb41b4836c89aa63c9

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2
1 change: 1 addition & 0 deletions integration/iOS/Pods/Local Podspecs/abacus.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions integration/iOS/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

200 changes: 110 additions & 90 deletions integration/iOS/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ data class EnvironmentFeatureFlags(
val usePessimisticCollateralCheck: Boolean,
val useOptimisticCollateralCheck: Boolean,
val withdrawalSafetyEnabled: Boolean,
val isSlTpEnabled: Boolean,
) {
companion object {
fun parse(
Expand All @@ -115,12 +116,14 @@ data class EnvironmentFeatureFlags(
val usePessimisticCollateralCheck = parser.asBool(data?.get("usePessimisticCollateralCheck")) ?: false
val useOptimisticCollateralCheck = parser.asBool(data?.get("useOptimisticCollateralCheck")) ?: false
val withdrawalSafetyEnabled = parser.asBool(data?.get("withdrawalSafetyEnabled")) ?: false
val isSlTpEnabled = parser.asBool(data?.get("isSlTpEnabled")) ?: false

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

0 comments on commit 44e7f32

Please sign in to comment.