From 49a33f03071fbf4f31cb5fd282fda68c5b08fa25 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 21 Feb 2023 14:16:16 -0600 Subject: [PATCH] hardcode majestic bank coin names --- .../exchange/majestic_bank/majestic_bank_exchange.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/services/exchange/majestic_bank/majestic_bank_exchange.dart b/lib/services/exchange/majestic_bank/majestic_bank_exchange.dart index fe6216e07..67012ad9b 100644 --- a/lib/services/exchange/majestic_bank/majestic_bank_exchange.dart +++ b/lib/services/exchange/majestic_bank/majestic_bank_exchange.dart @@ -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> 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,