mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-27 06:18:50 +01:00
Update changenow_exchange_provider.dart (#3416)
This commit is contained in:
@@ -325,6 +325,8 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
|
||||
return 'btc';
|
||||
case CryptoCurrency.arb:
|
||||
return 'arbitrum';
|
||||
case CryptoCurrency.nano:
|
||||
return 'nano';
|
||||
default:
|
||||
return currency.tag != null ? _normalizeTag(currency.tag!) : currency.title.toLowerCase();
|
||||
}
|
||||
@@ -337,6 +339,8 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
|
||||
switch (currency) {
|
||||
case CryptoCurrency.zec:
|
||||
return 'zec';
|
||||
case CryptoCurrency.maticpoly:
|
||||
return 'matic';
|
||||
default:
|
||||
return currency.title.toLowerCase();
|
||||
}
|
||||
@@ -344,7 +348,7 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
|
||||
|
||||
String _normalizeTag(String tag) {
|
||||
switch (tag) {
|
||||
case 'POLY':
|
||||
case 'POL':
|
||||
return 'matic';
|
||||
case 'LN':
|
||||
return 'lightning';
|
||||
|
||||
Reference in New Issue
Block a user