Compare commits

...
Author SHA1 Message Date
John Huang 7621ca3ee2 TRCL-3553 Having the launch incentive api in env.json 2024-02-21 10:12:05 -08:00
Bill d2c5b7945b Remove CEX withdraw testflag (#316) 2024-02-21 09:50:11 -08:00
3 changed files with 11 additions and 13 deletions
+6 -3
View File
@@ -71,7 +71,8 @@
"keplrDashboard": "https://testnet.keplr.app/", "keplrDashboard": "https://testnet.keplr.app/",
"strideZoneApp": "https://testnet.stride.zone", "strideZoneApp": "https://testnet.stride.zone",
"accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain", "accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain",
"walletLearnMore": "https://www.dydx.academy/video/defi-wallet" "walletLearnMore": "https://www.dydx.academy/video/defi-wallet",
"launchIncentive": "https://cloud.chaoslabs.co/"
}, },
"dydx-testnet-4": { "dydx-testnet-4": {
"tos": "https://dydx.exchange/v4-terms", "tos": "https://dydx.exchange/v4-terms",
@@ -92,7 +93,8 @@
"keplrDashboard": "https://testnet.keplr.app/", "keplrDashboard": "https://testnet.keplr.app/",
"strideZoneApp": "https://testnet.stride.zone", "strideZoneApp": "https://testnet.stride.zone",
"accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain", "accountExportLearnMore": "https://help.dydx.exchange/en/articles/8565867-secret-phrase-on-dydx-chain",
"walletLearnMore": "https://www.dydx.academy/video/defi-wallet" "walletLearnMore": "https://www.dydx.academy/video/defi-wallet",
"launchIncentive": "https://cloud.chaoslabs.co/"
}, },
"[mainnet chain id]": { "[mainnet chain id]": {
"tos": "[HTTP link to TOS]", "tos": "[HTTP link to TOS]",
@@ -113,7 +115,8 @@
"keplrDashboard": "[HTTP link to keplr dashboard, can be null]", "keplrDashboard": "[HTTP link to keplr dashboard, can be null]",
"strideZoneApp": "[HTTP link to stride zone app, can be null]", "strideZoneApp": "[HTTP link to stride zone app, can be null]",
"accountExportLearnMore": "[HTTP link to account export learn more, can be null]", "accountExportLearnMore": "[HTTP link to account export learn more, can be null]",
"walletLearnMore": "[HTTP link to wallet learn more, can be null]" "walletLearnMore": "[HTTP link to wallet learn more, can be null]",
"launchIncentive": "[HTTP link to launch incentive host, can be null]"
} }
}, },
"wallets": { "wallets": {
-4
View File
@@ -26,10 +26,6 @@ class TestFlags {
get showTradingRewards() { get showTradingRewards() {
return !!this.queryParams.tradingrewards; return !!this.queryParams.tradingrewards;
} }
get showCexWithdrawal() {
return !!this.queryParams.cexwithdrawal;
}
} }
export const testFlags = new TestFlags(); export const testFlags = new TestFlags();
@@ -63,12 +63,11 @@ export const SourceSelectMenu = ({
return ( return (
<SearchSelectMenu <SearchSelectMenu
items={[ items={[
exchangeItems.length > 0 && exchangeItems.length > 0 && {
(testFlags.showCexWithdrawal || type === TransferType.deposit) && { group: 'exchanges',
group: 'exchanges', groupLabel: stringGetter({ key: STRING_KEYS.EXCHANGES }),
groupLabel: stringGetter({ key: STRING_KEYS.EXCHANGES }), items: exchangeItems,
items: exchangeItems, },
},
chainItems.length > 0 && { chainItems.length > 0 && {
group: 'chains', group: 'chains',
groupLabel: stringGetter({ key: STRING_KEYS.CHAINS }), groupLabel: stringGetter({ key: STRING_KEYS.CHAINS }),