This commit is contained in:
Matthew Fosse 2024-04-08 11:46:28 -07:00
parent d80127030a
commit 14f87c8cb2
3 changed files with 21 additions and 5 deletions

BIN
assets/images/meld_dark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

View file

@ -72,7 +72,7 @@ class MeldProvider extends BuyProvider {
"walletAddress": walletAddress,
};
final uri = Uri.https(baseBuyUrl, '', params);
final uri = Uri.https(baseSellUrl, '', params);
return uri;
}

View file

@ -57,9 +57,18 @@ class ProvidersHelper {
switch (walletType) {
case WalletType.nano:
case WalletType.banano:
return [ProviderType.askEachTime, ProviderType.onramper];
return [
ProviderType.askEachTime,
ProviderType.onramper,
ProviderType.meld,
];
case WalletType.monero:
return [ProviderType.askEachTime, ProviderType.onramper, ProviderType.dfx];
return [
ProviderType.askEachTime,
ProviderType.onramper,
ProviderType.dfx,
ProviderType.meld,
];
case WalletType.bitcoin:
case WalletType.polygon:
case WalletType.ethereum:
@ -77,7 +86,8 @@ class ProvidersHelper {
ProviderType.askEachTime,
ProviderType.onramper,
ProviderType.robinhood,
ProviderType.moonpay
ProviderType.moonpay,
ProviderType.meld,
];
case WalletType.solana:
return [ProviderType.askEachTime, ProviderType.onramper, ProviderType.robinhood];
@ -97,16 +107,22 @@ class ProvidersHelper {
ProviderType.onramper,
ProviderType.moonpay,
ProviderType.dfx,
ProviderType.meld,
];
case WalletType.litecoin:
case WalletType.bitcoinCash:
return [ProviderType.askEachTime, ProviderType.moonpay];
return [
ProviderType.askEachTime,
ProviderType.moonpay,
ProviderType.meld,
];
case WalletType.solana:
return [
ProviderType.askEachTime,
ProviderType.onramper,
ProviderType.robinhood,
ProviderType.moonpay,
ProviderType.meld,
];
case WalletType.monero:
case WalletType.nano: