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()] 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:

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

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

View File

@@ -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) => {

View File

@@ -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) => {