mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-22 02:34:59 +00:00
Add sending for Solana tokens exchanges
This commit is contained in:
parent
0b41696239
commit
cdb65e43c8
2 changed files with 7 additions and 1 deletions
|
@ -102,6 +102,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
|
|||
CryptoCurrency.usdcEPoly,
|
||||
CryptoCurrency.kaspa,
|
||||
CryptoCurrency.digibyte,
|
||||
CryptoCurrency.usdtSol,
|
||||
];
|
||||
|
||||
static const havenCurrencies = [
|
||||
|
|
|
@ -162,9 +162,14 @@ abstract class ExchangeTradeViewModelBase with Store {
|
|||
wallet.currency == CryptoCurrency.maticpoly &&
|
||||
tradesStore.trade!.from.tag == CryptoCurrency.maticpoly.tag;
|
||||
|
||||
bool _isSplToken() =>
|
||||
wallet.currency == CryptoCurrency.sol &&
|
||||
tradesStore.trade!.from.tag == CryptoCurrency.sol.title;
|
||||
|
||||
return tradesStore.trade!.from == wallet.currency ||
|
||||
tradesStore.trade!.provider == ExchangeProviderDescription.xmrto ||
|
||||
_isEthToken() ||
|
||||
_isPolygonToken();
|
||||
_isPolygonToken() ||
|
||||
_isSplToken();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue