disable moonpay for non-eth wallets

This commit is contained in:
fosse 2023-11-15 09:20:37 -05:00
parent 3e7087b7f3
commit e9a3ca2053

View file

@ -104,13 +104,7 @@ class MainActions {
final walletType = viewModel.type;
switch (walletType) {
case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.ethereum:
case WalletType.bitcoinCash:
case WalletType.nano:
case WalletType.banano:
case WalletType.monero:
switch (defaultExchangeProvider) {
case ExchangeProviderType.AskEachTime:
Navigator.pushNamed(context, Routes.choose_exchange_provider);
@ -123,6 +117,14 @@ class MainActions {
break;
}
break;
case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.bitcoinCash:
case WalletType.nano:
case WalletType.banano:
case WalletType.monero:
await Navigator.of(context).pushNamed(Routes.exchange);
break;
default:
await showPopUp<void>(
context: context,