mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
Cw 939 whitelist known tokens (#2038)
* [skip-ci] init * don't get price data for potential scam tokens * updates * dont fetch fiat price for scam currencies
This commit is contained in:
parent
3a56277c27
commit
57fe3287fa
9 changed files with 97 additions and 11 deletions
|
@ -60,9 +60,12 @@ Future<void> startFiatRateUpdate(
|
|||
tron!.getTronTokenCurrencies(appStore.wallet!).where((element) => element.enabled);
|
||||
}
|
||||
|
||||
|
||||
if (currencies != null) {
|
||||
for (final currency in currencies) {
|
||||
// skip potential scams:
|
||||
if (currency.isPotentialScam) {
|
||||
continue;
|
||||
}
|
||||
() async {
|
||||
fiatConversionStore.prices[currency] = await FiatConversionService.fetchPrice(
|
||||
crypto: currency,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue