diff --git a/basicswap/interface/base.py b/basicswap/interface/base.py index 6b250d1..dbd4fb4 100644 --- a/basicswap/interface/base.py +++ b/basicswap/interface/base.py @@ -68,6 +68,8 @@ class CoinInterface: coin_chainparams = chainparams[self.coin_type()] if coin_chainparams.get('use_ticker_as_name', False): return coin_chainparams['ticker'] + if coin_chainparams['name'] == 'bitcoincash': + return 'Bitcoin Cash' return coin_chainparams['name'].capitalize() def ticker(self) -> str: diff --git a/basicswap/static/images/coins/Bitcoin%20Cash.png b/basicswap/static/images/coins/Bitcoin%20Cash.png new file mode 100644 index 0000000..baf0eb9 Binary files /dev/null and b/basicswap/static/images/coins/Bitcoin%20Cash.png differ diff --git a/basicswap/static/js/offerstable.js b/basicswap/static/js/offerstable.js index b046bd3..d4a9529 100644 --- a/basicswap/static/js/offerstable.js +++ b/basicswap/static/js/offerstable.js @@ -15,6 +15,7 @@ const coinNameToSymbol = { 'Decred': 'decred', 'Zano': 'zano', 'Dogecoin': 'dogecoin', + 'Bitcoin Cash': 'bitcoincash' }; function makePostRequest(url, headers = {}) { @@ -166,7 +167,7 @@ const itemsPerPage = 100; const coinIdToName = { 1: 'particl', 2: 'bitcoin', 3: 'litecoin', 4: 'decred', 6: 'monero', 7: 'particl blind', 8: 'particl anon', - 9: 'wownero', 11: 'pivx', 13: 'firo' + 9: 'wownero', 11: 'pivx', 13: 'firo', 17: 'bitcoincash' }; // DOM diff --git a/basicswap/templates/wallet.html b/basicswap/templates/wallet.html index eefbf1f..133646e 100644 --- a/basicswap/templates/wallet.html +++ b/basicswap/templates/wallet.html @@ -878,6 +878,7 @@ const coinNameToSymbol = { 'PIVX': 'PIVX', 'Decred': 'DCR', 'Zano': 'ZANO', + 'Bitcoin Cash': 'BCH', }; const getUsdValue = (cryptoValue, coinSymbol) => { diff --git a/basicswap/templates/wallets.html b/basicswap/templates/wallets.html index 9b60a6d..5909999 100644 --- a/basicswap/templates/wallets.html +++ b/basicswap/templates/wallets.html @@ -257,6 +257,7 @@ const coinNameToSymbol = { 'PIVX': 'PIVX', 'Decred': 'DCR', 'Zano': 'ZANO', + 'Bitcoin Cash': 'BCH', }; const getUsdValue = async (cryptoValue, coinSymbol) => {