Skip to content

Commit

Permalink
remove trading rewards feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Jun 6, 2024
1 parent 72da950 commit b518a89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Utilities
public enum dydxBoolFeatureFlag: String, CaseIterable {
case push_notification
case force_mainnet
case enable_trading_rewards
case enable_app_rating
case enable_isolated_margins

Expand All @@ -25,7 +24,7 @@ public enum dydxBoolFeatureFlag: String, CaseIterable {
switch self {
case .enable_app_rating:
return Self.obj.parser.asBoolean(FeatureService.shared?.flag(feature: rawValue))?.boolValue ?? true
case .push_notification, .force_mainnet, .enable_trading_rewards, .enable_isolated_margins:
case .push_notification, .force_mainnet, .enable_isolated_margins:
return Self.obj.parser.asBoolean(FeatureService.shared?.flag(feature: rawValue))?.boolValue ?? false
}
}
Expand Down
20 changes: 0 additions & 20 deletions dydx/dydxPresenters/dydxPresenters/_Features/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,26 +33,6 @@
]
}
},
{
"title":{
"text":"Enable Trading Rewards"
},
"field":{
"field":"enable_trading_rewards",
"optional":true,
"type" : "text",
"options" : [
{
"text": "yes",
"value" : "1"
},
{
"text": "no",
"value" : "0"
}
]
}
},
{
"title":{
"text":"Push Notification"
Expand Down
6 changes: 2 additions & 4 deletions dydx/dydxViews/dydxViews/_v4/Profile/dydxProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ public class dydxProfileViewModel: PlatformViewModel {
HStack(spacing: 14) {
self.fees?
.createView(parentStyle: style)
if dydxBoolFeatureFlag.enable_trading_rewards.isEnabled {
self.rewards?
.createView(parentStyle: style)
}
self.rewards?
.createView(parentStyle: style)
}

self.history?
Expand Down

0 comments on commit b518a89

Please sign in to comment.