Pass the correct params for swap SDK

This commit is contained in:
OmarHatem 2023-11-01 21:05:40 +02:00
parent 63b0896db9
commit 6d53f7bebe

View file

@ -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
});