From b518a89c52cde68cff889565b5949c65466ba786 Mon Sep 17 00:00:00 2001 From: mike-dydx Date: Thu, 6 Jun 2024 15:23:06 -0400 Subject: [PATCH] remove trading rewards feature flag --- .../_Utils/dydxFeatureFlag.swift | 3 +-- .../dydxPresenters/_Features/features.json | 20 ------------------- .../_v4/Profile/dydxProfileView.swift | 6 ++---- 3 files changed, 3 insertions(+), 26 deletions(-) diff --git a/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift b/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift index a47aa871f..55eddaba5 100644 --- a/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift +++ b/dydx/dydxFormatter/dydxFormatter/_Utils/dydxFeatureFlag.swift @@ -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 @@ -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 } } diff --git a/dydx/dydxPresenters/dydxPresenters/_Features/features.json b/dydx/dydxPresenters/dydxPresenters/_Features/features.json index 018ebf311..7a13d7891 100644 --- a/dydx/dydxPresenters/dydxPresenters/_Features/features.json +++ b/dydx/dydxPresenters/dydxPresenters/_Features/features.json @@ -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" diff --git a/dydx/dydxViews/dydxViews/_v4/Profile/dydxProfileView.swift b/dydx/dydxViews/dydxViews/_v4/Profile/dydxProfileView.swift index f27f8b1f8..75d7fc5de 100644 --- a/dydx/dydxViews/dydxViews/_v4/Profile/dydxProfileView.swift +++ b/dydx/dydxViews/dydxViews/_v4/Profile/dydxProfileView.swift @@ -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?