mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Gui fixes to bitcoincash
This commit is contained in:
@@ -68,6 +68,8 @@ class CoinInterface:
|
|||||||
coin_chainparams = chainparams[self.coin_type()]
|
coin_chainparams = chainparams[self.coin_type()]
|
||||||
if coin_chainparams.get('use_ticker_as_name', False):
|
if coin_chainparams.get('use_ticker_as_name', False):
|
||||||
return coin_chainparams['ticker']
|
return coin_chainparams['ticker']
|
||||||
|
if coin_chainparams['name'] == 'bitcoincash':
|
||||||
|
return 'Bitcoin Cash'
|
||||||
return coin_chainparams['name'].capitalize()
|
return coin_chainparams['name'].capitalize()
|
||||||
|
|
||||||
def ticker(self) -> str:
|
def ticker(self) -> str:
|
||||||
|
|||||||
BIN
basicswap/static/images/coins/Bitcoin%20Cash.png
Normal file
BIN
basicswap/static/images/coins/Bitcoin%20Cash.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
@@ -15,6 +15,7 @@ const coinNameToSymbol = {
|
|||||||
'Decred': 'decred',
|
'Decred': 'decred',
|
||||||
'Zano': 'zano',
|
'Zano': 'zano',
|
||||||
'Dogecoin': 'dogecoin',
|
'Dogecoin': 'dogecoin',
|
||||||
|
'Bitcoin Cash': 'bitcoincash'
|
||||||
};
|
};
|
||||||
|
|
||||||
function makePostRequest(url, headers = {}) {
|
function makePostRequest(url, headers = {}) {
|
||||||
@@ -166,7 +167,7 @@ const itemsPerPage = 100;
|
|||||||
const coinIdToName = {
|
const coinIdToName = {
|
||||||
1: 'particl', 2: 'bitcoin', 3: 'litecoin', 4: 'decred',
|
1: 'particl', 2: 'bitcoin', 3: 'litecoin', 4: 'decred',
|
||||||
6: 'monero', 7: 'particl blind', 8: 'particl anon',
|
6: 'monero', 7: 'particl blind', 8: 'particl anon',
|
||||||
9: 'wownero', 11: 'pivx', 13: 'firo'
|
9: 'wownero', 11: 'pivx', 13: 'firo', 17: 'bitcoincash'
|
||||||
};
|
};
|
||||||
|
|
||||||
// DOM
|
// DOM
|
||||||
|
|||||||
@@ -878,6 +878,7 @@ const coinNameToSymbol = {
|
|||||||
'PIVX': 'PIVX',
|
'PIVX': 'PIVX',
|
||||||
'Decred': 'DCR',
|
'Decred': 'DCR',
|
||||||
'Zano': 'ZANO',
|
'Zano': 'ZANO',
|
||||||
|
'Bitcoin Cash': 'BCH',
|
||||||
};
|
};
|
||||||
|
|
||||||
const getUsdValue = (cryptoValue, coinSymbol) => {
|
const getUsdValue = (cryptoValue, coinSymbol) => {
|
||||||
|
|||||||
@@ -257,6 +257,7 @@ const coinNameToSymbol = {
|
|||||||
'PIVX': 'PIVX',
|
'PIVX': 'PIVX',
|
||||||
'Decred': 'DCR',
|
'Decred': 'DCR',
|
||||||
'Zano': 'ZANO',
|
'Zano': 'ZANO',
|
||||||
|
'Bitcoin Cash': 'BCH',
|
||||||
};
|
};
|
||||||
|
|
||||||
const getUsdValue = async (cryptoValue, coinSymbol) => {
|
const getUsdValue = async (cryptoValue, coinSymbol) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user