Skip to content

Commit

Permalink
Add LTC to PirateDEX
Browse files Browse the repository at this point in the history
  • Loading branch information
gades committed Aug 18, 2019
1 parent 729189a commit 89a4c77
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
Binary file added app/assets/asset-symbols/pirate.ltc.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/assets/asset-symbols/symbols.js
Expand Up @@ -13,6 +13,8 @@ require("file-loader?name=asset-symbols/silver.png!./silver.png");
require("file-loader?name=asset-symbols/[name].png!./pirate.png");
require("file-loader?name=asset-symbols/[name].png!./bccx.png");
require("file-loader?name=asset-symbols/[name].png!./dlx.png");
require("file-loader?name=asset-symbols/[name].png!./ltc.png");
require("file-loader?name=asset-symbols/[name].png!./pirate.ltc.png");
require("file-loader?name=asset-symbols/[name].png!./pirate.btc.png");
require("file-loader?name=asset-symbols/[name].png!./pirate.bccx.png");
require("file-loader?name=asset-symbols/[name].png!./pirate.doge.png");
Expand Down
19 changes: 16 additions & 3 deletions app/branding.js
Expand Up @@ -83,7 +83,13 @@ export function getUnits() {
if (_isTestnet()) {
return ["TEST"];
} else {
return ["BTS", "PIRATE.BTC", "PIRATE.DOGE", "PIRATE.PIRATE"];
return [
"BTS",
"PIRATE.BTC",
"PIRATE.LTC",
"PIRATE.DOGE",
"PIRATE.PIRATE"
];
}
}

Expand All @@ -94,7 +100,7 @@ export function getUnits() {
*/

export function getMyMarketsBases() {
return ["PIRATE.PIRATE", "PIRATE.BTC", "PIRATE.DOGE", "BTS"];
return ["PIRATE.PIRATE", "PIRATE.BTC", "PIRATE.LTC", "PIRATE.DOGE", "BTS"];
}

/**
Expand All @@ -114,6 +120,7 @@ export function getMyMarketsQuotes() {
otherTokens: [
"PIRATE.PIRATE",
"PIRATE.BTC",
"PIRATE.LTC",
"PIRATE.BCCX",
"PIRATE.DOGE",
"PIRATE.DLX"
Expand All @@ -136,16 +143,22 @@ export function getFeaturedMarkets(quotes = []) {
return [
["PIRATE.PIRATE", "BTS"],
["PIRATE.PIRATE", "PIRATE.BTC"],
["PIRATE.PIRATE", "PIRATE.LTC"],
["PIRATE.PIRATE", "PIRATE.DOGE"],
["PIRATE.BCCX", "BTS"],
["PIRATE.BCCX", "PIRATE.BTC"],
["PIRATE.BCCX", "PIRATE.LTC"],
["PIRATE.BCCX", "PIRATE.DOGE"],
["PIRATE.DLX", "BTS"],
["PIRATE.DLX", "PIRATE.BTC"],
["PIRATE.DLX", "PIRATE.LTC"],
["PIRATE.DLX", "PIRATE.DOGE"],
["PIRATE.DOGE", "BTS"],
["PIRATE.DOGE", "PIRATE.BTC"],
["PIRATE.BTC", "BTS"]
["PIRATE.DOGE", "PIRATE.LTC"],
["PIRATE.BTC", "PIRATE.LTC"][("PIRATE.BTC", "BTS")][
("PIRATE.BTC", "BTS")
]
].filter(a => {
if (!quotes.length) return true;
return quotes.indexOf(a[0]) !== -1;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "PirateDEX",
"version": "3.1.030817",
"version": "3.1.180817",
"description": "Reference UI to showcase all features of the BitShares blockchain.",
"homepage": "https://github.com/piratecash/pirate-dex",
"author": "BitShares UI Worker <ui-dev@bitshares.org>",
Expand Down

0 comments on commit 89a4c77

Please sign in to comment.