CW-1013 Add deuro token (#2124)

* add deuro token * move to be before DAI * add asset and update currencies list --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

Matthew Fosse committed Mar 27, 2025 at 15:22 UTC 3d0f66c0bea92aa677a17443fd103eda196d4e0b
3 files changed +8
assets/images/deuro_icon.png
Binary files /dev/null and b/assets/images/deuro_icon.png differ
cw_core/lib/crypto_currency.dart
+1
@@ -231,6 +231,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
231 static const ton = CryptoCurrency(title: 'TON', fullName: 'Toncoin', raw: 95, name: 'ton', iconPath: 'assets/images/ton_icon.png', decimals: 8);
232 static const zano = CryptoCurrency(title: 'ZANO', tag: 'ZANO', fullName: 'Zano', raw: 96, name: 'zano', iconPath: 'assets/images/zano_icon.png', decimals: 12);
233 static const flip = CryptoCurrency(title: 'FLIP', tag: 'ETH', fullName: 'Chainflip', raw: 97, name: 'flip', iconPath: 'assets/images/flip_icon.png', decimals: 18);
234 + static const deuro = CryptoCurrency(title: 'DEURO', tag: 'ETH', fullName: 'dEuro', raw: 98, name: 'deuro', iconPath: 'assets/images/deuro_icon.png', decimals: 18);
235
236 static final Map<int, CryptoCurrency> _rawCurrencyMap =
237 [...all, ...havenCurrencies].fold<Map<int, CryptoCurrency>>(<int, CryptoCurrency>{}, (acc, item) {
cw_ethereum/lib/default_ethereum_erc20_tokens.dart
+7
@@ -17,6 +17,13 @@ class DefaultEthereumErc20Tokens {
17 decimal: 6,
18 enabled: true,
19 ),
20 + Erc20Token(
21 + name: "dEuro",
22 + symbol: "dEUR",
23 + contractAddress: "0xbA3f535bbCcCcA2A154b573Ca6c5A49BAAE0a3ea",
24 + decimal: 18,
25 + enabled: true,
26 + ),
27 Erc20Token(
28 name: "Dai",
29 symbol: "DAI",