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:
Matthew Fosse 2025-02-26 19:49:57 -08:00 committed by GitHub
parent 3a56277c27
commit 57fe3287fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 97 additions and 11 deletions

View file

@ -11,7 +11,8 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
this.iconPath,
this.tag,
this.enabled = false,
})
this.isPotentialScam = false,
})
: super(title: title, raw: raw);
final String name;
@ -20,6 +21,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
final String? iconPath;
final int decimals;
final bool enabled;
final bool isPotentialScam;
set enabled(bool value) => this.enabled = value;