mirror of
https://github.com/basicswap/basicswap.git
synced 2025-03-12 09:38:03 +00:00
Gui fixes to bitcoincash
This commit is contained in:
parent
465f910812
commit
ed80caf532
5 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
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',
|
||||
'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
|
||||
|
|
|
@ -878,6 +878,7 @@ const coinNameToSymbol = {
|
|||
'PIVX': 'PIVX',
|
||||
'Decred': 'DCR',
|
||||
'Zano': 'ZANO',
|
||||
'Bitcoin Cash': 'BCH',
|
||||
};
|
||||
|
||||
const getUsdValue = (cryptoValue, coinSymbol) => {
|
||||
|
|
|
@ -257,6 +257,7 @@ const coinNameToSymbol = {
|
|||
'PIVX': 'PIVX',
|
||||
'Decred': 'DCR',
|
||||
'Zano': 'ZANO',
|
||||
'Bitcoin Cash': 'BCH',
|
||||
};
|
||||
|
||||
const getUsdValue = async (cryptoValue, coinSymbol) => {
|
||||
|
|
Loading…
Reference in a new issue