mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
feat: Add Tether Gold (XAUT) to Ethereum tokens list with associated icon (#2856)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 108 KiB |
@@ -82,6 +82,14 @@ class EthereumTokens {
|
||||
decimal: 18,
|
||||
enabled: false,
|
||||
),
|
||||
Erc20Token(
|
||||
name: "Tether Gold",
|
||||
symbol: "XAUT",
|
||||
contractAddress: "0x68749665FF8D2d112Fa859AA293F07A622782F38",
|
||||
decimal: 6,
|
||||
enabled: false,
|
||||
iconPath: "assets/images/xaut_icon.png",
|
||||
),
|
||||
];
|
||||
|
||||
return tokens.map((token) {
|
||||
@@ -89,8 +97,7 @@ class EthereumTokens {
|
||||
if (token.iconPath?.isEmpty ?? true) {
|
||||
try {
|
||||
iconPath = CryptoCurrency.all
|
||||
.firstWhere((element) =>
|
||||
element.title.toUpperCase() == token.symbol.toUpperCase())
|
||||
.firstWhere((element) => element.title.toUpperCase() == token.symbol.toUpperCase())
|
||||
.iconPath;
|
||||
} catch (_) {}
|
||||
} else {
|
||||
@@ -101,4 +108,3 @@ class EthereumTokens {
|
||||
}).toList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user