Gui fixes to bitcoincash

This commit is contained in:
mainnet-pat 2024-10-30 13:25:25 +00:00 committed by tecnovert
parent 465f910812
commit ed80caf532
5 changed files with 6 additions and 1 deletions

View file

@ -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:

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -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

View file

@ -878,6 +878,7 @@ const coinNameToSymbol = {
'PIVX': 'PIVX',
'Decred': 'DCR',
'Zano': 'ZANO',
'Bitcoin Cash': 'BCH',
};
const getUsdValue = (cryptoValue, coinSymbol) => {

View file

@ -257,6 +257,7 @@ const coinNameToSymbol = {
'PIVX': 'PIVX',
'Decred': 'DCR',
'Zano': 'ZANO',
'Bitcoin Cash': 'BCH',
};
const getUsdValue = async (cryptoValue, coinSymbol) => {