mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
CW-443 Use networkWallets on OnRamper (#1012)
* CW-443 Use networkWallets on OnRamper * CW-443 Normalize XMR
This commit is contained in:
parent
b2c8b32e49
commit
da2f1c62f5
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,8 @@ class OnRamperBuyProvider {
|
|||
switch (_wallet.currency) {
|
||||
case CryptoCurrency.ltc:
|
||||
return "LTC_LITECOIN";
|
||||
case CryptoCurrency.xmr:
|
||||
return "XMR_MONERO";
|
||||
default:
|
||||
return _wallet.currency.title;
|
||||
}
|
||||
|
@ -60,11 +62,12 @@ class OnRamperBuyProvider {
|
|||
break;
|
||||
}
|
||||
|
||||
final networkName = _wallet.currency.fullName?.toUpperCase().replaceAll(" ", "");
|
||||
|
||||
return Uri.https(_baseUrl, '', <String, dynamic>{
|
||||
'apiKey': _apiKey,
|
||||
'defaultCrypto': _normalizeCryptoCurrency,
|
||||
'wallets': '${_wallet.currency.title}:${_wallet.walletAddresses.address}',
|
||||
'networkWallets': '${networkName}:${_wallet.walletAddresses.address}',
|
||||
'supportSell': "false",
|
||||
'supportSwap': "false",
|
||||
'primaryColor': primaryColor,
|
||||
|
|
Loading…
Reference in a new issue