add buy/sell widget param

This commit is contained in:
Matthew Fosse 2024-04-12 09:51:38 -07:00
parent dc862c21ee
commit 6bb6cf6de0

View file

@ -64,6 +64,7 @@ class MeldProvider extends BuyProvider {
String? amount, String? amount,
}) async { }) async {
final params = { final params = {
"transactionType": "SELL",
"publicKey": secrets.meldApiKey, "publicKey": secrets.meldApiKey,
"theme": convertTheme(settingsStore.currentTheme), "theme": convertTheme(settingsStore.currentTheme),
"sourceCurrencyCode": currencyCode.toUpperCase(), "sourceCurrencyCode": currencyCode.toUpperCase(),
@ -83,6 +84,7 @@ class MeldProvider extends BuyProvider {
String? amount, String? amount,
}) async { }) async {
final params = { final params = {
"transactionType": "BUY",
"publicKey": secrets.meldApiKey, "publicKey": secrets.meldApiKey,
"theme": convertTheme(settingsStore.currentTheme), "theme": convertTheme(settingsStore.currentTheme),
"destinationCurrencyCode": currencyCode.toUpperCase(), "destinationCurrencyCode": currencyCode.toUpperCase(),