feat: Replace buy action to use onramper (#1026)

This commit is contained in:
Adegoke David 2023-08-08 16:09:51 +01:00 committed by GitHub
parent 8185b88b4a
commit fb5a1112e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 199 additions and 171 deletions

View file

@ -47,6 +47,7 @@ class MainActions {
case WalletType.bitcoin:
case WalletType.litecoin:
case WalletType.ethereum:
case WalletType.monero:
if (viewModel.isEnabledBuyAction) {
final uri = getIt.get<OnRamperBuyProvider>().requestUrl();
if (DeviceInfo.instance.isMobile) {
@ -57,13 +58,6 @@ class MainActions {
}
}
break;
case WalletType.monero:
if (viewModel.isEnabledBuyAction) {
// final uri = getIt.get<PayfuraBuyProvider>().requestUrl();
final uri = Uri.parse("https://monero.com/trade");
await launchUrl(uri);
}
break;
default:
await showPopUp<void>(
context: context,