From 6d53f7bebe878dc4a650c4c70d0c5188a24196f0 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Wed, 1 Nov 2023 21:05:40 +0200 Subject: [PATCH] Pass the correct params for swap SDK --- lib/src/screens/exchange/moonpay_exchange_web_view.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/screens/exchange/moonpay_exchange_web_view.dart b/lib/src/screens/exchange/moonpay_exchange_web_view.dart index 8d331d41d..92b24fa1b 100644 --- a/lib/src/screens/exchange/moonpay_exchange_web_view.dart +++ b/lib/src/screens/exchange/moonpay_exchange_web_view.dart @@ -22,15 +22,14 @@ class MoonpayExchangeWebView extends BasePage { const moonPay = window.MoonPayWebSdk.init; const moonPaySdk = moonPay({ - flow: 'buy', + flow: 'swapsCustomerSetup', environment: 'production', variant: 'newTab', params: { apiKey: '${secrets.moonPayApiKey}', theme: 'dark', - baseCurrencyCode: 'usd', - baseCurrencyAmount: '100', - defaultCurrencyCode: 'eth' + amountCurrencyCode: 'usd', + amount: '100', }, debug: $kDebugMode });