Skip to content

Commit

Permalink
disable CITADEL and mark SPARK
Browse files Browse the repository at this point in the history
  • Loading branch information
sschiessl-bcp committed Feb 16, 2021
1 parent f7d4e16 commit fef5ff9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/branding.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ export function allowedGateway(gateway) {
"GDEX",
"XBTSX",
"CITADEL",
"BRIDGE" // keep to display the warning icon, permanently disabled in gateways.js
"BRIDGE", // keep to display the warning icon, permanently disabled in gateways.js
"SPARKDEX" // keep to display the warning icon, permanently disabled in gateways.js
];
if (!gateway) {
// answers the question: are any allowed?
Expand Down
6 changes: 5 additions & 1 deletion app/components/Gateways/GatewaySelectorModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ class GatewaySelectorModal extends React.Component {
const all = this._getRows();
let onChainConfig = {};
for (let i = 0; i < all.length; i++) {
if (!(await all[i].isEnabled({onlyOnChainConfig: true})))
if (!(await all[i].isEnabled({onlyOnChainConfig: true}))) {
onChainConfig[all[i].key] = await getGatewayConfig(all[i].key);
if (!onChainConfig[all[i].key]) {
onChainConfig[all[i].key] = {enabled: false};
}
}
}
this.setState({onChainConfig});
}
Expand Down
10 changes: 5 additions & 5 deletions app/lib/common/gateways.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ export const availableGateways = {
id: "SPARKDEX",
name: "BitSpark",
baseAPI: bitsparkAPIs,
isEnabled: _isEnabled("SPARKDEX"),
isEnabled: () => false,
selected: false,
options: {
enabled: false,
selected: false
},
landing: "https://www.bitspark.io/for-traders",
wallet: "https://dex.bitspark.io/"
landing: "https://www.bitspark.io/",
wallet: "Shutdown"
},
BRIDGE: {
id: "BRIDGE",
Expand Down Expand Up @@ -181,15 +181,15 @@ export const availableGateways = {
id: "CITADEL",
name: "Citadel",
baseAPI: citadelAPIs,
isEnabled: _isEnabled("CITADEL"),
isEnabled: () => false,
selected: false,
assetWithdrawlAlias: {monero: "xmr"}, // if asset name doesn't equal to memo
options: {
enabled: false,
selected: false
},
landing: "https://citadel.li/",
wallet: "https://citadel.li/wallet/"
wallet: "Disabled"
}
};

Expand Down

0 comments on commit fef5ff9

Please sign in to comment.