mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
hardcode majestic bank coin names
This commit is contained in:
parent
a358edf1ce
commit
49a33f0307
1 changed files with 9 additions and 1 deletions
|
@ -21,6 +21,13 @@ class MajesticBankExchange extends Exchange {
|
|||
|
||||
static const exchangeName = "Majestic Bank";
|
||||
|
||||
static const kMajesticBankCurrencyNames = {
|
||||
"BTC": "Bitcoin",
|
||||
"LTC": "Litecoin",
|
||||
"WOW": "Wownero",
|
||||
"XMR": "Monero",
|
||||
};
|
||||
|
||||
@override
|
||||
Future<ExchangeResponse<Trade>> createTrade({
|
||||
required String from,
|
||||
|
@ -110,7 +117,8 @@ class MajesticBankExchange extends Exchange {
|
|||
final currency = Currency(
|
||||
exchangeName: MajesticBankExchange.exchangeName,
|
||||
ticker: limit.currency,
|
||||
name: limit.currency, // todo: get full coin name
|
||||
name: kMajesticBankCurrencyNames[limit.currency] ??
|
||||
limit.currency, // todo: add more names if MB adds more
|
||||
network: "",
|
||||
image: "",
|
||||
isFiat: false,
|
||||
|
|
Loading…
Reference in a new issue