minor fix

This commit is contained in:
Serhii 2024-09-30 18:06:34 +03:00
parent 8d7a6fba81
commit f0c499dfd0
2 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ class DFXBuyProvider extends BuyProvider {
Future<String> auth() async { Future<String> auth() async {
final signMessage = await getSignature( final signMessage = await getSignature(
await getSignMessage()); //TODO: Sign message does not work for LTC and BCH await getSignMessage());
final requestBody = jsonEncode({ final requestBody = jsonEncode({
'wallet': walletName, 'wallet': walletName,
@ -230,7 +230,7 @@ class DFXBuyProvider extends BuyProvider {
paymentMethod = normalizePaymentMethod(paymentType); paymentMethod = normalizePaymentMethod(paymentType);
if (paymentMethod == null) paymentMethod = paymentType.name; if (paymentMethod == null) paymentMethod = paymentType.name;
} else { } else {
paymentMethod = 'Card'; paymentMethod = 'Bank';
} }
final action = isBuyAction ? 'buy' : 'sell'; final action = isBuyAction ? 'buy' : 'sell';

View file

@ -254,7 +254,7 @@ class OnRamperBuyProvider extends BuyProvider {
switch (tag) { switch (tag) {
case 'OMNI': case 'OMNI':
return tag; return tag;
case 'POLY': case 'POL':
return 'POLYGON'; return 'POLYGON';
default: default:
return CryptoCurrency.fromString(tag).fullName ?? tag; return CryptoCurrency.fromString(tag).fullName ?? tag;