Skip to content

Commit

Permalink
Cleanup: remove BCH (Bitcoin Cash) (#3511)
Browse files Browse the repository at this point in the history
  • Loading branch information
iower committed Jan 24, 2021
1 parent 2c35331 commit 455c83f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 54 deletions.
2 changes: 1 addition & 1 deletion src/bot/microbot/actions/start/swapStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const needsRefund = (swap) => {
&& COIN_DATA[head]
&& COIN_DATA[head].model === COIN_MODEL.UTXO
) {
// if (head === 'BTC') { // ['BTC','BCH','USDT'].includes(head)) {
// if (head === 'BTC') { // ['BTC', 'USDT'].includes(head)) {
// BTC to _ETH_

//const { btcScriptCreatingTransactionHash } = state
Expand Down
2 changes: 0 additions & 2 deletions src/bot/routes/swaps/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const runSwap = (swap) => {
console.log('enter step', step)
switch (swap.flow._flowName) {
case "BTC2ETH":
case "BCH2ETH":
case "BTC2NOXON":
case "BTC2SWAP":
case "BTC2XSAT":
Expand All @@ -53,7 +52,6 @@ const runSwap = (swap) => {
return

case "ETH2BTC":
case "ETH2BCH":
case "NOXON2BTC":
case "SWAP2BTC":
case "XSAT2BTC":
Expand Down
3 changes: 0 additions & 3 deletions src/common/utils/mnemonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@ const getNextWallet = (network, mnemonic, walletNumber = 0, path) => {
}

const mnemonicIsValid = (mnemonic:string):boolean => bip39.validateMnemonic(convertMnemonicToValid(mnemonic))
const getBchWallet = (network, mnemonic, walletNumber = 0, path) => { /* not implements */ }


const forCoin = {
BTC: getBtcWallet,
ETH: getEthWallet,
GHOST: getGhostWallet,
NEXT: getNextWallet,
BCH: getBchWallet, /* not implements */
}

export {
Expand All @@ -116,6 +114,5 @@ export {
getEthWallet,
getGhostWallet,
getNextWallet,
getBchWallet, /* not implements */
forCoin,
}
48 changes: 0 additions & 48 deletions src/core/swap.auth/bch.ts

This file was deleted.

0 comments on commit 455c83f

Please sign in to comment.