mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +00:00
mb icon and refcode
This commit is contained in:
parent
8061f0811d
commit
57c31e9fa2
6 changed files with 10 additions and 4 deletions
1
assets/svg/exchange_icons/mb_blue.svg
Normal file
1
assets/svg/exchange_icons/mb_blue.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.5 KiB |
1
assets/svg/exchange_icons/mb_green.svg
Normal file
1
assets/svg/exchange_icons/mb_green.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.5 KiB |
|
@ -337,7 +337,7 @@ class ExchangeProviderOptions extends ConsumerWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(top: 5.0),
|
padding: const EdgeInsets.only(top: 5.0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.exchange.changeNow,
|
Assets.exchange.majesticBankBlue,
|
||||||
width: isDesktop ? 32 : 24,
|
width: isDesktop ? 32 : 24,
|
||||||
height: isDesktop ? 32 : 24,
|
height: isDesktop ? 32 : 24,
|
||||||
),
|
),
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:decimal/decimal.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:stackwallet/exceptions/exchange/exchange_exception.dart';
|
import 'package:stackwallet/exceptions/exchange/exchange_exception.dart';
|
||||||
import 'package:stackwallet/exceptions/exchange/pair_unavailable_exception.dart';
|
import 'package:stackwallet/exceptions/exchange/pair_unavailable_exception.dart';
|
||||||
|
import 'package:stackwallet/external_api_keys.dart';
|
||||||
import 'package:stackwallet/models/exchange/majestic_bank/mb_limit.dart';
|
import 'package:stackwallet/models/exchange/majestic_bank/mb_limit.dart';
|
||||||
import 'package:stackwallet/models/exchange/majestic_bank/mb_order.dart';
|
import 'package:stackwallet/models/exchange/majestic_bank/mb_order.dart';
|
||||||
import 'package:stackwallet/models/exchange/majestic_bank/mb_order_calculation.dart';
|
import 'package:stackwallet/models/exchange/majestic_bank/mb_order_calculation.dart';
|
||||||
|
@ -16,7 +17,6 @@ class MajesticBankAPI {
|
||||||
static const String scheme = "https";
|
static const String scheme = "https";
|
||||||
static const String authority = "majesticbank.sc";
|
static const String authority = "majesticbank.sc";
|
||||||
static const String version = "v1";
|
static const String version = "v1";
|
||||||
static const String refCode = "fixme";
|
|
||||||
|
|
||||||
MajesticBankAPI._();
|
MajesticBankAPI._();
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ class MajesticBankAPI {
|
||||||
"from_currency": fromCurrency,
|
"from_currency": fromCurrency,
|
||||||
"receive_currency": receiveCurrency,
|
"receive_currency": receiveCurrency,
|
||||||
"receive_address": receiveAddress,
|
"receive_address": receiveAddress,
|
||||||
"referral_code": refCode,
|
"referral_code": kMajesticBankRefCode,
|
||||||
};
|
};
|
||||||
|
|
||||||
final uri = _buildUri(endpoint: "exchange", params: params);
|
final uri = _buildUri(endpoint: "exchange", params: params);
|
||||||
|
@ -283,7 +283,7 @@ class MajesticBankAPI {
|
||||||
"from_currency": fromCurrency,
|
"from_currency": fromCurrency,
|
||||||
"receive_currency": receiveCurrency,
|
"receive_currency": receiveCurrency,
|
||||||
"receive_address": receiveAddress,
|
"receive_address": receiveAddress,
|
||||||
"referral_code": refCode,
|
"referral_code": kMajesticBankRefCode,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (reversed) {
|
if (reversed) {
|
||||||
|
|
|
@ -26,6 +26,8 @@ class _EXCHANGE {
|
||||||
|
|
||||||
String get changeNow => "assets/svg/exchange_icons/change_now_logo_1.svg";
|
String get changeNow => "assets/svg/exchange_icons/change_now_logo_1.svg";
|
||||||
String get simpleSwap => "assets/svg/exchange_icons/simpleswap-icon.svg";
|
String get simpleSwap => "assets/svg/exchange_icons/simpleswap-icon.svg";
|
||||||
|
String get majesticBankBlue => "assets/svg/exchange_icons/mb_blue.svg";
|
||||||
|
String get majesticBankGreen => "assets/svg/exchange_icons/mb_green.svg";
|
||||||
}
|
}
|
||||||
|
|
||||||
class _BUY {
|
class _BUY {
|
||||||
|
|
|
@ -343,6 +343,8 @@ flutter:
|
||||||
# exchange icons
|
# exchange icons
|
||||||
- assets/svg/exchange_icons/change_now_logo_1.svg
|
- assets/svg/exchange_icons/change_now_logo_1.svg
|
||||||
- assets/svg/exchange_icons/simpleswap-icon.svg
|
- assets/svg/exchange_icons/simpleswap-icon.svg
|
||||||
|
- assets/svg/exchange_icons/mb_green.svg
|
||||||
|
- assets/svg/exchange_icons/mb_blue.svg
|
||||||
|
|
||||||
# theme selectors
|
# theme selectors
|
||||||
- assets/svg/dark-theme.svg
|
- assets/svg/dark-theme.svg
|
||||||
|
|
Loading…
Reference in a new issue