diff --git a/src/app/components/shared/asset-piechart.js b/src/app/components/shared/asset-piechart.js index fd51d43..e1dca70 100644 --- a/src/app/components/shared/asset-piechart.js +++ b/src/app/components/shared/asset-piechart.js @@ -319,6 +319,8 @@ export const chartColorForTicker = (ticker) => { return '#002352'; case 'DOGE': return '#C3A634'; + case 'LBC': + return '#46aa9e'; case 'LTC': return '#BFBBBB'; case 'PHR': diff --git a/src/app/modules/token-manifest.js b/src/app/modules/token-manifest.js index d4ceaea..f5cd013 100644 --- a/src/app/modules/token-manifest.js +++ b/src/app/modules/token-manifest.js @@ -30,7 +30,7 @@ class TokenManifest { infos.set(info.ticker, info); for (const t of this._manifest) { const token = new Token(t); - token.xbinfo = infos.get(token.ticker); + token.xbinfo = infos.get(token.ticker) || {}; if (token.ticker === 'BLOCK') token.xbinfo.rpcport = 41419; // default BLOCK port to ensure no clash with DX this._tokens.set(token.ticker, token); @@ -43,9 +43,10 @@ class TokenManifest { * @return Token */ getToken(ticker) { + console.log(ticker, this._tokens.has(ticker), this._tokens.get(ticker)); if (!this._tokens.has(ticker)) return null; - return this._tokens.get(ticker); + return this._tokens.get(ticker) ; } } diff --git a/src/static/images/coins/icon-lbc.png b/src/static/images/coins/icon-lbc.png new file mode 100644 index 0000000..54df8db Binary files /dev/null and b/src/static/images/coins/icon-lbc.png differ diff --git a/src/static/images/coins/icon-lbc@2x.png b/src/static/images/coins/icon-lbc@2x.png new file mode 100644 index 0000000..3c1b62a Binary files /dev/null and b/src/static/images/coins/icon-lbc@2x.png differ diff --git a/static-data/coin-data.json b/static-data/coin-data.json index 899e719..82786f3 100644 --- a/static-data/coin-data.json +++ b/static-data/coin-data.json @@ -82,5 +82,12 @@ "website": "https://polispay.org/", "explorer": "https://explorer.polispay.org/", "explorerTx": "https://explorer.polispay.org/tx/{{tx}}" + }, + { + "ticker": "LBC", + "name": "LBRY Credits", + "website": "https://lbry.com/", + "explorer": "https://explorer.lbry.com/", + "explorerTx": "https://explorer.lbry.com/tx/{{tx}}" } ]