dev
dart 88 lines 2.39 KB
Raw
1 import 'package:cw_core/crypto_currency.dart';
2 import 'package:cw_core/erc20_token.dart';
3
4 /// Default ERC20 tokens for Arbitrum
5 class ArbitrumTokens {
6 static List<Erc20Token> get tokens {
7 final tokens = [
8 Erc20Token(
9 name: "Arbitrum",
10 symbol: "ARB",
11 contractAddress: "0x912ce59144191c1204e64559fe8253a0e49e6548",
12 decimal: 18,
13 enabled: true,
14 ),
15 Erc20Token(
16 name: "Tether USD (Omnichain)",
17 symbol: "USDT",
18 contractAddress: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
19 decimal: 6,
20 enabled: true,
21 ),
22 Erc20Token(
23 name: "USD Coin",
24 symbol: "USDC",
25 contractAddress: "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
26 decimal: 6,
27 enabled: true,
28 ),
29 Erc20Token(
30 name: "USDC.e",
31 symbol: "USDC.e",
32 contractAddress: "0xff970a61a04b1ca14834a43f5de4533ebddb5cc8",
33 decimal: 6,
34 enabled: true,
35 ),
36 Erc20Token(
37 name: "Wrapped BTC",
38 symbol: "WBTC",
39 contractAddress: "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
40 decimal: 8,
41 enabled: true,
42 ),
43 Erc20Token(
44 name: "Chainlink Token",
45 symbol: "LINK",
46 contractAddress: "0xf97f4df75117a78c1a5a0dbb814af92458539fb4",
47 decimal: 18,
48 enabled: true,
49 ),
50 Erc20Token(
51 name: "Wrapped liquid staked Ether 2.0",
52 symbol: "wstETH",
53 contractAddress: "0x0fbcbaea96ce0cf7ee00a8c19c3ab6f5dc8e1921",
54 decimal: 18,
55 enabled: false,
56 ),
57 Erc20Token(
58 name: "Wrapped Ether",
59 symbol: "WETH",
60 contractAddress: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
61 decimal: 18,
62 enabled: false,
63 ),
64 Erc20Token(
65 name: "DAI",
66 symbol: "DAI",
67 contractAddress: "0xda10009cbd5d07dd0cecc66161fc93d7c9000da1",
68 decimal: 18,
69 enabled: false,
70 ),
71 ];
72
73 return tokens.map((token) {
74 String? iconPath;
75 if (token.iconPath?.isEmpty ?? true) {
76 try {
77 iconPath = CryptoCurrency.all
78 .firstWhere((element) => element.title.toUpperCase() == token.symbol.toUpperCase())
79 .iconPath;
80 } catch (_) {}
81 } else {
82 iconPath = token.iconPath;
83 }
84
85 return Erc20Token.copyWith(token, icon: iconPath, tag: 'ARB');
86 }).toList();
87 }
88 }