feat: add NDEPS and DEPS ERC20 Tokens (#2403)

This commit is contained in:
Konstantin Ullrich
2025-07-23 23:48:09 +03:00
committed by GitHub
parent 15f1b95dd2
commit dea9f3d8a1
4 changed files with 19 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+5
View File
@@ -113,6 +113,8 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
CryptoCurrency.flip,
CryptoCurrency.deuro,
CryptoCurrency.usdtbsc,
CryptoCurrency.ndeps,
CryptoCurrency.deps,
];
static const havenCurrencies = [
@@ -235,6 +237,9 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
static const flip = CryptoCurrency(title: 'FLIP', tag: 'ETH', fullName: 'Chainflip', raw: 97, name: 'flip', iconPath: 'assets/images/flip_icon.png', decimals: 18);
static const deuro = CryptoCurrency(title: 'DEURO', tag: 'ETH', fullName: 'Decentralized Euro', raw: 98, name: 'deuro', iconPath: 'assets/images/deuro_icon.png', decimals: 18);
static const usdtbsc = CryptoCurrency(title: 'USDT', tag: 'BSC', fullName: 'USDT Binance coin', raw: 99, name: 'usdtbsc', iconPath: 'assets/images/usdtbsc_icon.png', decimals: 18);
static const ndeps = CryptoCurrency(title: 'NDEPS', tag: 'ETH', fullName: 'Native Decentralized Euro Protocol Share', raw: 100, name: 'ndeps', iconPath: 'assets/images/ndeps_icon.png', decimals: 18);
static const deps = CryptoCurrency(title: 'DEPS', tag: 'ETH', fullName: 'Decentralized Euro Protocol Share', raw: 101, name: 'deps', iconPath: 'assets/images/deps_icon.png', decimals: 18);
static final Map<int, CryptoCurrency> _rawCurrencyMap =
[...all, ...havenCurrencies].fold<Map<int, CryptoCurrency>>(<int, CryptoCurrency>{}, (acc, item) {
@@ -304,6 +304,20 @@ class DefaultEthereumErc20Tokens {
decimal: 18,
enabled: false,
),
Erc20Token(
name: "Native Decentralized Euro Protocol Share",
symbol: "NDEPS",
contractAddress: "0xc71104001A3CCDA1BEf1177d765831Bd1bfE8eE6",
decimal: 18,
enabled: false,
),
Erc20Token(
name: "Decentralized Euro Protocol Share",
symbol: "DEPS",
contractAddress: "0x103747924e74708139a9400e4ab4bea79fffa380",
decimal: 18,
enabled: false,
),
];
List<Erc20Token> get initialErc20Tokens => _defaultTokens.map((token) {