@proton/wrap-constants 0.2.71 → 0.2.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/coins.ts CHANGED
@@ -1,1227 +1,1435 @@
1
- import { Asset } from '@bloks/numbers'
1
+ import { Asset } from "@bloks/numbers";
2
2
 
3
3
  export enum Chains {
4
- BitcoinMainnet = 'Bitcoin',
5
- BitcoinTestnet = 'Bitcoin (Testnet)',
6
- EthereumMainnet = 'Ethereum',
7
- EthereumRopsten = 'Ethereum (Ropsten)',
8
- LitecoinMainnet = 'Litecoin',
9
- LitecoinTestnet = 'Litecoin (Testnet)',
10
- BitcoinCashMainnet = 'Bitcoin Cash',
11
- BitcoinCashTestnet = 'Bitcoin Cash (Testnet)',
12
- StellarMainnet = 'Stellar',
13
- StellarTestnet = 'Stellar (Testnet)',
14
- ProtonMainnet = 'Proton',
15
- ProtonTestnet = 'Proton (Testnet)',
16
- PolkadotMainnet = 'Polkadot',
17
- BinanceBEP2 = 'Binance (BEP2)',
18
- BinanceBEP20 = 'Binance (BEP20)',
19
- EosMainnet = 'EOS',
20
- EosTestnet = 'EOS (Jungle Testnet)',
21
- HederaMainnet = 'Hedera (Mainnet)',
22
- HederaTestnet = 'Hedera (Testnet)',
23
- DogeMainnet = 'Dogecoin',
24
- CardanoMainnet = 'Cardano',
25
- AvalancheXChain = 'Avalanche X-Chain',
26
- AvalancheCChain = 'Avalanche C-Chain',
27
- PolygonMainnet = 'Polygon',
28
- TerraMainnet = 'Terra',
29
- RippleMainnet = 'Ripple',
30
- SolanaMainnet = 'Solana',
31
- XDCMainnet = 'XDC Network',
32
- MetalXTestnet = 'Metal X-Chain (Testnet)',
33
- MetalCTestnet = 'Metal C-Chain (Testnet)',
34
- MetalCMainnet = 'Metal C-Chain'
4
+ BitcoinMainnet = "Bitcoin",
5
+ BitcoinTestnet = "Bitcoin (Testnet)",
6
+ EthereumMainnet = "Ethereum",
7
+ EthereumRopsten = "Ethereum (Ropsten)",
8
+ LitecoinMainnet = "Litecoin",
9
+ LitecoinTestnet = "Litecoin (Testnet)",
10
+ BitcoinCashMainnet = "Bitcoin Cash",
11
+ BitcoinCashTestnet = "Bitcoin Cash (Testnet)",
12
+ StellarMainnet = "Stellar",
13
+ StellarTestnet = "Stellar (Testnet)",
14
+ ProtonMainnet = "Proton",
15
+ ProtonTestnet = "Proton (Testnet)",
16
+ PolkadotMainnet = "Polkadot",
17
+ BinanceBEP2 = "Binance (BEP2)",
18
+ BinanceBEP20 = "Binance (BEP20)",
19
+ EosMainnet = "EOS",
20
+ EosTestnet = "EOS (Jungle Testnet)",
21
+ HederaMainnet = "Hedera (Mainnet)",
22
+ HederaTestnet = "Hedera (Testnet)",
23
+ DogeMainnet = "Dogecoin",
24
+ CardanoMainnet = "Cardano",
25
+ AvalancheXChain = "Avalanche X-Chain",
26
+ AvalancheCChain = "Avalanche C-Chain",
27
+ PolygonMainnet = "Polygon",
28
+ TerraMainnet = "Terra",
29
+ RippleMainnet = "Ripple",
30
+ SolanaMainnet = "Solana",
31
+ XDCMainnet = "XDC Network",
32
+ MetalXTestnet = "Metal X-Chain (Testnet)",
33
+ MetalCTestnet = "Metal C-Chain (Testnet)",
34
+ MetalCMainnet = "Metal C-Chain",
35
35
  }
36
36
 
37
37
  export enum Networks {
38
- Mainnet = 'mainnet',
39
- Testnet = 'testnet',
40
- Ropsten = 'ropsten',
41
- ERC20 = 'erc20',
42
- BEP20 = 'bep20',
43
- XLM = 'xlm',
44
- AVM = 'avm',
45
- EVM = 'evm',
38
+ Mainnet = "mainnet",
39
+ Testnet = "testnet",
40
+ Ropsten = "ropsten",
41
+ ERC20 = "erc20",
42
+ BEP20 = "bep20",
43
+ XLM = "xlm",
44
+ AVM = "avm",
45
+ EVM = "evm",
46
46
  }
47
47
 
48
48
  export const similarChains = {
49
- [Chains.EthereumMainnet]: [Chains.BinanceBEP20],
50
- [Chains.BinanceBEP20]: [Chains.EthereumMainnet],
51
- }
49
+ [Chains.EthereumMainnet]: [Chains.BinanceBEP20],
50
+ [Chains.BinanceBEP20]: [Chains.EthereumMainnet],
51
+ };
52
52
 
53
53
  export interface Coin {
54
- allowSwap : boolean;
55
- allowBridge : boolean;
56
- allowLend : boolean;
57
- allowBorrow : boolean;
58
- name : string;
59
- coin : string;
60
- xtokenSymbol : string;
61
- xtokenPrecision: number;
62
- xtokenContract : string;
63
- wallets : Wallet[];
64
- image : string;
65
- coingeckoId : string;
66
- balance? : Asset;
54
+ allowSwap: boolean;
55
+ allowBridge: boolean;
56
+ allowLend: boolean;
57
+ allowBorrow: boolean;
58
+ name: string;
59
+ coin: string;
60
+ xtokenSymbol: string;
61
+ xtokenPrecision: number;
62
+ xtokenContract: string;
63
+ wallets: Wallet[];
64
+ image: string;
65
+ coingeckoId: string;
66
+ balance?: Asset;
67
67
  }
68
-
68
+
69
69
  export interface Wallet {
70
- wallet : string;
71
- symbol : string;
72
- chain : Chains;
73
- network : Networks;
74
- precision : number;
75
- contract : string | undefined;
76
- provider : string;
77
- hasWithdrawMemo: boolean;
70
+ wallet: string;
71
+ symbol: string;
72
+ chain: Chains;
73
+ network: Networks;
74
+ precision: number;
75
+ contract: string | undefined;
76
+ provider: string;
77
+ hasWithdrawMemo: boolean;
78
78
  }
79
79
 
80
80
  export enum Providers {
81
- FIREBLOCKS = "fireblocks",
82
- METAL = "metal"
81
+ FIREBLOCKS = "fireblocks",
82
+ METAL = "metal",
83
83
  }
84
84
 
85
- export type CoinWallet = Exclude<Coin, 'wallets'> & Wallet
85
+ export type CoinWallet = Exclude<Coin, "wallets"> & Wallet;
86
86
 
87
87
  export const explorerLinkByChain = {
88
- [Chains.BitcoinMainnet] : (txid: string) => `https://blockchain.com/btc/tx/${txid}`,
89
- [Chains.BitcoinTestnet] : (txid: string) => `https://blockstream.info/testnet/tx/${txid}`,
90
- [Chains.EthereumMainnet] : (txid: string) => `https://etherscan.io/tx/${txid}`,
91
- [Chains.EthereumRopsten] : (txid: string) => `https://ropsten.etherscan.io/tx/${txid}`,
92
- [Chains.LitecoinMainnet] : (txid: string) => `https://blockchair.com/litecoin/transaction/${txid}`,
93
- [Chains.LitecoinTestnet] : (txid: string) => `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
94
- [Chains.BitcoinCashMainnet]: (txid: string) => `https://blockchair.com/bitcoin-cash/transaction/${txid}`,
95
- [Chains.BitcoinCashTestnet]: (txid: string) => `https://blockexplorer.one/bitcoin-cash/testnet/blockHash/${txid}`,
96
- [Chains.StellarMainnet] : (txid: string) => `https://blockchair.com/stellar/transaction/${txid}`,
97
- [Chains.StellarTestnet] : (txid: string) => `https://testnet.steexp.com/tx/${txid}`,
98
- [Chains.ProtonMainnet] : (txid: string, traces?: boolean) => `https://proton.bloks.io/transaction/${txid}${traces ? '?tab=traces' : ''}`,
99
- [Chains.ProtonTestnet] : (txid: string, traces?: boolean) => `https://proton-test.bloks.io/transaction/${txid}${traces ? '?tab=traces' : ''}`,
100
- [Chains.PolkadotMainnet] : (txid: string) => `https://polkadot.subscan.io/extrinsic/${txid}`,
101
- [Chains.BinanceBEP2] : (txid: string) => `https://binance.mintscan.io/txs/${txid}`,
102
- [Chains.BinanceBEP20] : (txid: string) => `https://bscscan.com/tx/${txid}`,
103
- [Chains.EosMainnet] : (txid: string) => `https://bloks.io/transaction/${txid}`,
104
- [Chains.EosTestnet] : (txid: string) => `https://jungle.bloks.io/transaction/${txid}`,
105
- [Chains.HederaMainnet] : (txid: string) => `https://app.dragonglass.me/transactions/${txid}`,
106
- [Chains.HederaTestnet] : (txid: string) => `https://testnet.dragonglass.me/transactions/${txid}`,
107
- [Chains.DogeMainnet] : (txid: string) => `https://blockchair.com/dogecoin/transaction/${txid}`,
108
- [Chains.CardanoMainnet] : (txid: string) => `https://explorer.cardano.org/en/transaction?id=${txid}`,
109
- [Chains.AvalancheXChain] : (txid: string) => `https://avascan.info/blockchain/x/tx/${txid}`,
110
- [Chains.AvalancheCChain] : (txid: string) => `https://snowtrace.io/tx/${txid}`,
111
- [Chains.PolygonMainnet] : (txid: string) => `https://polygonscan.com/tx/${txid}`,
112
- [Chains.TerraMainnet] : (txid: string) => `https://terra.stake.id/?#/tx/${txid}`,
113
- [Chains.RippleMainnet] : (txid: string) => `https://xrpscan.com/tx/${txid}`,
114
- [Chains.SolanaMainnet] : (txid: string) => `https://explorer.solana.com/tx/${txid}`,
115
- [Chains.MetalXTestnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
116
- [Chains.MetalCTestnet] : (txid: string) => `https://tahoe.metaltrace.io/tx/${txid}`,
117
- [Chains.MetalCMainnet] : (txid: string) => `https://metalscan.io/tx/${txid}`,
118
- [Chains.XDCMainnet] : (txid: string) => `https://xdc.blocksscan.io/txs/${txid}`,
119
- }
88
+ [Chains.BitcoinMainnet]: (txid: string) =>
89
+ `https://blockchain.com/btc/tx/${txid}`,
90
+ [Chains.BitcoinTestnet]: (txid: string) =>
91
+ `https://blockstream.info/testnet/tx/${txid}`,
92
+ [Chains.EthereumMainnet]: (txid: string) => `https://etherscan.io/tx/${txid}`,
93
+ [Chains.EthereumRopsten]: (txid: string) =>
94
+ `https://ropsten.etherscan.io/tx/${txid}`,
95
+ [Chains.LitecoinMainnet]: (txid: string) =>
96
+ `https://blockchair.com/litecoin/transaction/${txid}`,
97
+ [Chains.LitecoinTestnet]: (txid: string) =>
98
+ `https://blockexplorer.one/litecoin/testnet/blockHash/${txid}`,
99
+ [Chains.BitcoinCashMainnet]: (txid: string) =>
100
+ `https://blockchair.com/bitcoin-cash/transaction/${txid}`,
101
+ [Chains.BitcoinCashTestnet]: (txid: string) =>
102
+ `https://blockexplorer.one/bitcoin-cash/testnet/blockHash/${txid}`,
103
+ [Chains.StellarMainnet]: (txid: string) =>
104
+ `https://blockchair.com/stellar/transaction/${txid}`,
105
+ [Chains.StellarTestnet]: (txid: string) =>
106
+ `https://testnet.steexp.com/tx/${txid}`,
107
+ [Chains.ProtonMainnet]: (txid: string, traces?: boolean) =>
108
+ `https://proton.bloks.io/transaction/${txid}${traces ? "?tab=traces" : ""}`,
109
+ [Chains.ProtonTestnet]: (txid: string, traces?: boolean) =>
110
+ `https://proton-test.bloks.io/transaction/${txid}${
111
+ traces ? "?tab=traces" : ""
112
+ }`,
113
+ [Chains.PolkadotMainnet]: (txid: string) =>
114
+ `https://polkadot.subscan.io/extrinsic/${txid}`,
115
+ [Chains.BinanceBEP2]: (txid: string) =>
116
+ `https://binance.mintscan.io/txs/${txid}`,
117
+ [Chains.BinanceBEP20]: (txid: string) => `https://bscscan.com/tx/${txid}`,
118
+ [Chains.EosMainnet]: (txid: string) => `https://bloks.io/transaction/${txid}`,
119
+ [Chains.EosTestnet]: (txid: string) =>
120
+ `https://jungle.bloks.io/transaction/${txid}`,
121
+ [Chains.HederaMainnet]: (txid: string) =>
122
+ `https://app.dragonglass.me/transactions/${txid}`,
123
+ [Chains.HederaTestnet]: (txid: string) =>
124
+ `https://testnet.dragonglass.me/transactions/${txid}`,
125
+ [Chains.DogeMainnet]: (txid: string) =>
126
+ `https://blockchair.com/dogecoin/transaction/${txid}`,
127
+ [Chains.CardanoMainnet]: (txid: string) =>
128
+ `https://explorer.cardano.org/en/transaction?id=${txid}`,
129
+ [Chains.AvalancheXChain]: (txid: string) =>
130
+ `https://avascan.info/blockchain/x/tx/${txid}`,
131
+ [Chains.AvalancheCChain]: (txid: string) => `https://snowtrace.io/tx/${txid}`,
132
+ [Chains.PolygonMainnet]: (txid: string) =>
133
+ `https://polygonscan.com/tx/${txid}`,
134
+ [Chains.TerraMainnet]: (txid: string) =>
135
+ `https://terra.stake.id/?#/tx/${txid}`,
136
+ [Chains.RippleMainnet]: (txid: string) => `https://xrpscan.com/tx/${txid}`,
137
+ [Chains.SolanaMainnet]: (txid: string) =>
138
+ `https://explorer.solana.com/tx/${txid}`,
139
+ [Chains.MetalXTestnet]: (txid: string) => `https://metalscan.io/tx/${txid}`,
140
+ [Chains.MetalCTestnet]: (txid: string) =>
141
+ `https://tahoe.metaltrace.io/tx/${txid}`,
142
+ [Chains.MetalCMainnet]: (txid: string) => `https://metalscan.io/tx/${txid}`,
143
+ [Chains.XDCMainnet]: (txid: string) =>
144
+ `https://xdc.blocksscan.io/txs/${txid}`,
145
+ };
120
146
 
121
- export const protonExplorerTxUrl = (chain: string, txId: string, traces?: boolean) => chain === 'proton'
147
+ export const protonExplorerTxUrl = (
148
+ chain: string,
149
+ txId: string,
150
+ traces?: boolean
151
+ ) =>
152
+ chain === "proton"
122
153
  ? explorerLinkByChain[Chains.ProtonMainnet](txId, traces)
123
- : explorerLinkByChain[Chains.ProtonTestnet](txId, traces)
154
+ : explorerLinkByChain[Chains.ProtonTestnet](txId, traces);
124
155
 
125
156
  // Initialize.
126
- export const initializeCoins = (protonChain: string): {
127
- allCoins : Coin[];
128
- swapCoins : Coin[];
129
- bridgeCoins : Coin[];
130
- lendCoins : Coin[];
131
- borrowCoins : Coin[];
132
- loanCoins : Coin[];
133
- allEnabledCoins: Coin[];
157
+ export const initializeCoins = (
158
+ protonChain: string
159
+ ): {
160
+ allCoins: Coin[];
161
+ swapCoins: Coin[];
162
+ bridgeCoins: Coin[];
163
+ lendCoins: Coin[];
164
+ borrowCoins: Coin[];
165
+ loanCoins: Coin[];
166
+ allEnabledCoins: Coin[];
134
167
  } => {
135
- const IS_MAINNET = protonChain === 'proton'
136
- const IS_TESTNET = protonChain === 'proton-test'
137
-
138
- const coins: Coin[] = [
139
- {
140
- allowSwap: true,
141
- allowBridge: IS_MAINNET,
142
- allowLend: true,
143
- allowBorrow: true,
144
- name: 'Proton',
145
- coin: 'XPR',
146
- xtokenSymbol: 'XPR',
147
- xtokenPrecision: 4,
148
- xtokenContract: 'eosio.token',
149
- wallets: [
150
- ...(IS_MAINNET ? [
151
- {
152
- wallet: 'XPR-ERC20',
153
- symbol: 'XPR',
154
- chain: Chains.EthereumMainnet,
155
- network: Networks.ERC20,
156
- precision: 4,
157
- contract: '0xD7EFB00D12C2C13131FD319336FDF952525DA2AF',
158
- provider: Providers.FIREBLOCKS,
159
- hasWithdrawMemo: false
160
- },
161
- {
162
- wallet: 'XPR-BEP20',
163
- symbol: 'XPR',
164
- chain: Chains.BinanceBEP20,
165
- network: Networks.BEP20,
166
- precision: 4,
167
- contract: '0x5DE3939B2F811A61D830E6F52D13B066881412AB',
168
- provider: Providers.FIREBLOCKS,
169
- hasWithdrawMemo: false
170
- }
171
- ]: []),
172
- ],
173
- image: 'https://www.proton.org/images/tokens/eosio-tokenXPR.png',
174
- coingeckoId: 'proton'
175
- },
176
- {
177
- allowSwap: true,
178
- allowBridge: true,
179
- allowLend: true,
180
- allowBorrow: true,
181
- name: 'USD Coin',
182
- coin: 'USDC',
183
- xtokenSymbol: 'XUSDC',
184
- xtokenPrecision: 6,
185
- xtokenContract: 'xtokens',
186
- wallets: [
187
- ...(IS_MAINNET ? [
188
- {
189
- wallet: 'USDC',
190
- symbol: 'USDC',
191
- chain: Chains.EthereumMainnet,
192
- network: Networks.ERC20,
193
- precision: 6,
194
- contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
195
- provider: Providers.FIREBLOCKS,
196
- hasWithdrawMemo: false
197
- },
198
- // {
199
- // wallet: 'USDC-BEP20',
200
- // symbol: 'USDC',
201
- // chain: Chains.BinanceBEP20,
202
- // network: Networks.BEP20,
203
- // precision: 18,
204
- // contract: '0x8AC76A51CC950D9822D68B83FE1AD97B32CD580D',
205
- // provider: Providers.FIREBLOCKS,
206
- // hasWithdrawMemo: false
207
- // },
208
- {
209
- wallet: 'USDC-XLM',
210
- symbol: 'USDC',
211
- chain: Chains.StellarMainnet,
212
- network: Networks.XLM,
213
- precision: 7,
214
- contract: undefined,
215
- provider: Providers.FIREBLOCKS,
216
- hasWithdrawMemo: true
217
- },
218
- ]: []),
219
- ...(IS_TESTNET ? [
220
- {
221
- wallet: 'USDC',
222
- symbol: 'USDC',
223
- chain: Chains.EthereumRopsten,
224
- network: Networks.Ropsten,
225
- precision: 6,
226
- contract: '0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48',
227
- provider: Providers.FIREBLOCKS,
228
- hasWithdrawMemo: false
229
- },
230
- {
231
- wallet: 'USDC-XLM',
232
- symbol: 'USDC',
233
- chain: Chains.StellarTestnet,
234
- network: Networks.XLM,
235
- precision: 7,
236
- contract: undefined,
237
- provider: Providers.FIREBLOCKS,
238
- hasWithdrawMemo: true
239
- },
240
- ]: [])
241
- ],
242
- image: 'https://www.proton.org/images/tokens/xtokensXUSDC.png',
243
- coingeckoId: 'usd-coin'
244
- },
245
- {
246
- allowSwap: true,
247
- allowBridge: IS_MAINNET,
248
- allowLend: true,
249
- allowBorrow: true,
250
- name: 'Metal DAO',
251
- coin: 'MTL',
252
- xtokenSymbol: 'XMT',
253
- xtokenPrecision: 8,
254
- xtokenContract: 'xtokens',
255
- wallets: [
256
- ...(IS_MAINNET ? [{
257
- wallet: 'MTL',
258
- symbol: 'MTL',
259
- chain: Chains.EthereumMainnet,
260
- network: Networks.ERC20,
261
- precision: 8,
262
- contract: '0xF433089366899D83A9F26A773D59EC7ECF30355E',
263
- provider: Providers.FIREBLOCKS,
264
- hasWithdrawMemo: false
265
- }]: [])
266
- ],
267
- image: 'https://www.proton.org/images/tokens/xtokensXMT.png',
268
- coingeckoId: 'metal'
269
- },
270
- {
271
- allowSwap: true,
272
- allowBridge: true,
273
- allowLend: false,
274
- allowBorrow: false,
275
- name: 'Metal Blockchain',
276
- coin: 'METAL',
277
- xtokenSymbol: 'METAL',
278
- xtokenPrecision: 8,
279
- xtokenContract: 'xtokens',
280
- wallets: [
281
- ...(IS_TESTNET ? [{
282
- wallet: 'METAL',
283
- symbol: 'METAL',
284
- chain: Chains.MetalCTestnet,
285
- network: Networks.EVM,
286
- precision: 18,
287
- contract: '',
288
- provider: Providers.METAL,
289
- hasWithdrawMemo: false
290
- }]: []),
291
- ...(IS_MAINNET ? [
292
- {
293
- wallet: 'METAL',
294
- symbol: 'METAL',
295
- chain: Chains.MetalCMainnet,
296
- network: Networks.EVM,
297
- precision: 18,
298
- contract: '',
299
- provider: Providers.METAL,
300
- hasWithdrawMemo: false
301
- },
302
- {
303
- wallet: 'METAL',
304
- symbol: 'METAL',
305
- chain: Chains.EthereumMainnet,
306
- network: Networks.ERC20,
307
- precision: 18,
308
- contract: '',
309
- provider: Providers.FIREBLOCKS,
310
- hasWithdrawMemo: false
311
- }
312
- ]: [])
313
- ],
314
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png',
315
- coingeckoId: 'metal-blockchain'
316
- },
317
- {
318
- allowSwap: true,
319
- allowBridge: true,
320
- allowLend: true,
321
- allowBorrow: true,
322
- name: 'Bitcoin',
323
- coin: 'BTC',
324
- xtokenSymbol: 'XBTC',
325
- xtokenPrecision: 8,
326
- xtokenContract: 'xtokens',
327
- wallets: [
328
- ...(IS_MAINNET ? [{
329
- wallet: 'BTC',
330
- symbol: 'BTC',
331
- chain: Chains.BitcoinMainnet,
332
- network: Networks.Mainnet,
333
- precision: 8,
334
- contract: undefined,
335
- provider: Providers.FIREBLOCKS,
336
- hasWithdrawMemo: false
337
- }]: []),
338
- ...(IS_TESTNET ? [{
339
- wallet: 'BTC',
340
- symbol: 'BTC',
341
- chain: Chains.BitcoinTestnet,
342
- network: Networks.Testnet,
343
- precision: 8,
344
- contract: undefined,
345
- provider: Providers.FIREBLOCKS,
346
- hasWithdrawMemo: false
347
- }]: [])
348
- ],
349
- image: 'https://www.proton.org/images/tokens/xtokensXBTC.png',
350
- coingeckoId: 'bitcoin'
351
- },
352
- {
353
- allowSwap: true,
354
- allowBridge: true,
355
- allowLend: true,
356
- allowBorrow: true,
357
- name: 'Ethereum',
358
- coin: 'ETH',
359
- xtokenSymbol: 'XETH',
360
- xtokenPrecision: 8,
361
- xtokenContract: 'xtokens',
362
- wallets: [
363
- ...(IS_MAINNET ? [{
364
- wallet: 'ETH',
365
- symbol: 'ETH',
366
- chain: Chains.EthereumMainnet,
367
- network: Networks.Mainnet,
368
- precision: 18,
369
- contract: '0x0000000000000000000000000000000000000000',
370
- provider: Providers.FIREBLOCKS,
371
- hasWithdrawMemo: false
372
- }]: []),
373
- ...(IS_TESTNET ? [{
374
- wallet: 'ETH',
375
- symbol: 'ETH',
376
- chain: Chains.EthereumRopsten,
377
- network: Networks.Ropsten,
378
- precision: 18,
379
- contract: '0x0000000000000000000000000000000000000000',
380
- provider: Providers.FIREBLOCKS,
381
- hasWithdrawMemo: false
382
- }]: [])
383
- ],
384
- image: 'https://www.proton.org/images/tokens/xtokensXETH.png',
385
- coingeckoId: 'ethereum'
386
- },
387
- {
388
- allowSwap: true,
389
- allowBridge: false,
390
- allowLend: false,
391
- allowBorrow: false,
392
- name: 'Loan',
393
- coin: 'LOAN',
394
- xtokenSymbol: 'LOAN',
395
- xtokenPrecision: 4,
396
- xtokenContract: 'loan.token',
397
- wallets: [],
398
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/loan.png',
399
- coingeckoId: 'proton-loan'
400
- },
401
- {
402
- allowSwap: true,
403
- allowBridge: true,
404
- allowLend: false,
405
- allowBorrow: false,
406
- name: 'Tether',
407
- coin: 'USDT',
408
- xtokenSymbol: 'XUSDT',
409
- xtokenPrecision: 6,
410
- xtokenContract: 'xtokens',
411
- wallets: [
412
- ...(IS_MAINNET ? [{
413
- wallet: 'USDT',
414
- symbol: 'USDT',
415
- chain: Chains.EthereumMainnet,
416
- network: Networks.ERC20,
417
- precision: 6,
418
- contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
419
- provider: Providers.FIREBLOCKS,
420
- hasWithdrawMemo: false
421
- }]: []),
422
- ...(IS_MAINNET ? [{
423
- wallet: 'USDT-BEP20',
424
- symbol: 'USDT',
425
- chain: Chains.BinanceBEP20,
426
- network: Networks.BEP20,
427
- precision: 18,
428
- contract: '0x55d398326f99059fF775485246999027B3197955',
429
- provider: Providers.FIREBLOCKS,
430
- hasWithdrawMemo: false
431
- }]: []),
432
- ...(IS_TESTNET ? [{
433
- wallet: 'USDT',
434
- symbol: 'USDT',
435
- chain: Chains.EthereumRopsten,
436
- network: Networks.Ropsten,
437
- precision: 6,
438
- contract: '0xDAC17F958D2EE523A2206206994597C13D831EC7',
439
- provider: Providers.FIREBLOCKS,
440
- hasWithdrawMemo: false
441
- }]: [])
442
- ],
443
- image: 'https://www.proton.org/images/tokens/xtokensXUSDT.png',
444
- coingeckoId: 'tether'
445
- },
446
- {
447
- allowSwap: false,
448
- allowBridge: IS_MAINNET,
449
- allowLend: false,
450
- allowBorrow: false,
451
- name: 'TrueUSD',
452
- coin: 'TUSD',
453
- xtokenSymbol: 'XTUSD',
454
- xtokenPrecision: 6,
455
- xtokenContract: 'xtokens',
456
- wallets: [
457
- ...(IS_MAINNET ? [{
458
- wallet: 'TUSD',
459
- symbol: 'TUSD',
460
- chain: Chains.EthereumMainnet,
461
- network: Networks.ERC20,
462
- precision: 18,
463
- contract: '0x0000000000085D4780B73119B644AE5ECD22B376',
464
- provider: Providers.FIREBLOCKS,
465
- hasWithdrawMemo: false
466
- }]: [])
467
- ],
468
- image: 'https://www.proton.org/images/tokens/xtokensXTUSD.png',
469
- coingeckoId: 'true-usd'
470
- },
471
- {
472
- allowSwap: false,
473
- allowBridge: IS_MAINNET,
474
- allowLend: false,
475
- allowBorrow: false,
476
- name: 'Euro Coin',
477
- coin: 'EUROC',
478
- xtokenSymbol: 'XEUROC',
479
- xtokenPrecision: 6,
480
- xtokenContract: 'xtokens',
481
- wallets: [
482
- ...(IS_MAINNET ? [{
483
- wallet: 'EUROC',
484
- symbol: 'EUROC-ERC20',
485
- chain: Chains.EthereumMainnet,
486
- network: Networks.ERC20,
487
- precision: 6,
488
- contract: '0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c',
489
- provider: Providers.FIREBLOCKS,
490
- hasWithdrawMemo: false
491
- }]: [])
492
- ],
493
- image: 'https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420',
494
- coingeckoId: 'euro-coin'
495
- },
496
- {
497
- allowSwap: false,
498
- allowBridge: IS_MAINNET,
499
- allowLend: false,
500
- allowBorrow: false,
501
- name: 'XDC Network',
502
- coin: 'XDC',
503
- xtokenSymbol: 'XDC',
504
- xtokenPrecision: 4,
505
- xtokenContract: 'xtokens',
506
- wallets: [
507
- ...(IS_MAINNET ? [{
508
- wallet: 'XDC',
509
- symbol: 'XDC',
510
- chain: Chains.XDCMainnet,
511
- network: Networks.Mainnet,
512
- precision: 18,
513
- contract: '',
514
- provider: Providers.FIREBLOCKS,
515
- hasWithdrawMemo: false
516
- }]: [])
517
- ],
518
- image: 'https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890',
519
- coingeckoId: 'xdce-crowd-sale'
520
- },
521
- {
522
- allowSwap: false,
523
- allowBridge: IS_MAINNET,
524
- allowLend: false,
525
- allowBorrow: false,
526
- name: 'Paxos Dollar',
527
- coin: 'PAX',
528
- xtokenSymbol: 'XPAX',
529
- xtokenPrecision: 6,
530
- xtokenContract: 'xtokens',
531
- wallets: [
532
- ...(IS_MAINNET ? [{
533
- wallet: 'PAX',
534
- symbol: 'PAX',
535
- chain: Chains.EthereumMainnet,
536
- network: Networks.ERC20,
537
- precision: 18,
538
- contract: '0x8E870D67F660D95D5BE530380D0EC0BD388289E1',
539
- provider: Providers.FIREBLOCKS,
540
- hasWithdrawMemo: false
541
- }]: [])
542
- ],
543
- image: 'https://www.proton.org/images/tokens/xtokensXPAX.png',
544
- coingeckoId: 'paxos-standard'
545
- },
546
- {
547
- allowSwap: false,
548
- allowBridge: true,
549
- allowLend: false,
550
- allowBorrow: false,
551
- name: 'Paxos Gold',
552
- coin: 'PAXG',
553
- xtokenSymbol: 'XPAXG',
554
- xtokenPrecision: 8,
555
- xtokenContract: 'xtokens',
556
- wallets: [
557
- ...(IS_MAINNET ? [{
558
- wallet: 'PAXG',
559
- symbol: 'PAXG',
560
- chain: Chains.EthereumMainnet,
561
- network: Networks.ERC20,
562
- precision: 18,
563
- contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
564
- provider: Providers.FIREBLOCKS,
565
- hasWithdrawMemo: false
566
- }]: []),
567
- ...(IS_TESTNET ? [{
568
- wallet: 'PAXG',
569
- symbol: 'PAXG',
570
- chain: Chains.EthereumRopsten,
571
- network: Networks.Ropsten,
572
- precision: 18,
573
- contract: '0x45804880DE22913DAFE09F4980848ECE6ECBAF78',
574
- provider: Providers.FIREBLOCKS,
575
- hasWithdrawMemo: false
576
- }]: [])
577
- ],
578
- image: 'https://www.proton.org/images/tokens/xtokensXPAXG.png',
579
- coingeckoId: 'pax-gold'
580
- },
581
- {
582
- allowSwap: IS_MAINNET,
583
- allowBridge: false,
584
- allowLend: false,
585
- allowBorrow: false,
586
- name: 'Storex',
587
- coin: 'STRX',
588
- xtokenSymbol: 'STRX',
589
- xtokenPrecision: 4,
590
- xtokenContract: 'storex',
591
- wallets: [],
592
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/strx.png',
593
- coingeckoId: ''
594
- },
595
- {
596
- allowSwap: IS_MAINNET,
597
- allowBridge: false,
598
- allowLend: false,
599
- allowBorrow: false,
600
- name: 'Mint',
601
- coin: 'MINT',
602
- xtokenSymbol: 'MINT',
603
- xtokenPrecision: 4,
604
- xtokenContract: 'protonmint',
605
- wallets: [],
606
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/PMLogo-04.png',
607
- coingeckoId: ''
608
- },
609
- {
610
- allowSwap: IS_MAINNET,
611
- allowBridge: false,
612
- allowLend: false,
613
- allowBorrow: false,
614
- name: 'Snipcoins',
615
- coin: 'SNIPS',
616
- xtokenSymbol: 'SNIPS',
617
- xtokenPrecision: 4,
618
- xtokenContract: 'snipcoins',
619
- wallets: [],
620
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/snips.png',
621
- coingeckoId: ''
622
- },
623
- {
624
- allowSwap: IS_MAINNET,
625
- allowBridge: true,
626
- allowLend: false,
627
- allowBorrow: false,
628
- name: 'Uniswap',
629
- coin: 'UNI',
630
- xtokenSymbol: 'XUNI',
631
- xtokenPrecision: 6,
632
- xtokenContract: 'xtokens',
633
- wallets: [
634
- ...(IS_MAINNET ? [{
635
- wallet: 'UNI',
636
- symbol: 'UNI',
637
- chain: Chains.EthereumMainnet,
638
- network: Networks.ERC20,
639
- precision: 18,
640
- contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
641
- provider: Providers.FIREBLOCKS,
642
- hasWithdrawMemo: false
643
- }]: []),
644
- ...(IS_TESTNET ? [{
645
- wallet: 'UNI',
646
- symbol: 'UNI',
647
- chain: Chains.EthereumRopsten,
648
- network: Networks.Ropsten,
649
- precision: 18,
650
- contract: '0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984',
651
- provider: Providers.FIREBLOCKS,
652
- hasWithdrawMemo: false
653
- }]: [])
654
- ],
655
- image: 'https://www.proton.org/images/tokens/xtokensXUNI.png',
656
- coingeckoId: 'uniswap'
657
- },
658
- {
659
- allowSwap: false,
660
- allowBridge: false,
661
- allowLend: false,
662
- allowBorrow: false,
663
- name: '1INCH',
664
- coin: '1INCH',
665
- xtokenSymbol: 'XINCH',
666
- xtokenPrecision: 6,
667
- xtokenContract: 'xtokens',
668
- wallets: [
669
- ...(IS_MAINNET ? [{
670
- wallet: '1INCH',
671
- symbol: '1INCH',
672
- chain: Chains.EthereumMainnet,
673
- network: Networks.ERC20,
674
- precision: 18,
675
- contract: '0x111111111117DC0AA78B770FA6A738034120C302',
676
- provider: Providers.FIREBLOCKS,
677
- hasWithdrawMemo: false
678
- }]: [])
679
- ],
680
- image: 'https://www.proton.org/images/tokens/xtokensXINCH.png',
681
- coingeckoId: '1inch'
682
- },
683
- {
684
- allowSwap: false,
685
- allowBridge: false,
686
- allowLend: false,
687
- allowBorrow: false,
688
- name: 'Chainlink',
689
- coin: 'LINK',
690
- xtokenSymbol: 'XLINK',
691
- xtokenPrecision: 6,
692
- xtokenContract: 'xtokens',
693
- wallets: [
694
- ...(IS_MAINNET ? [{
695
- wallet: 'LINK',
696
- symbol: 'LINK',
697
- chain: Chains.EthereumMainnet,
698
- network: Networks.ERC20,
699
- precision: 18,
700
- contract: '0x514910771AF9CA656AF840DFF83E8264ECF986CA',
701
- provider: Providers.FIREBLOCKS,
702
- hasWithdrawMemo: false
703
- }]: [])
704
- ],
705
- image: 'https://www.proton.org/images/tokens/xtokensXLINK.png',
706
- coingeckoId: 'chainlink'
707
- },
708
- {
709
- allowSwap: IS_MAINNET,
710
- allowBridge: true,
711
- allowLend: false,
712
- allowBorrow: false,
713
- name: 'Litecoin',
714
- coin: 'LTC',
715
- xtokenSymbol: 'XLTC',
716
- xtokenPrecision: 8,
717
- xtokenContract: 'xtokens',
718
- wallets: [
719
- ...(IS_MAINNET ? [{
720
- wallet: 'LTC',
721
- symbol: 'LTC',
722
- chain: Chains.LitecoinMainnet,
723
- network: Networks.Mainnet,
724
- precision: 8,
725
- contract: undefined,
726
- provider: Providers.FIREBLOCKS,
727
- hasWithdrawMemo: false
728
- }]: []),
729
- ...(IS_TESTNET ? [{
730
- wallet: 'LTC',
731
- symbol: 'LTC',
732
- chain: Chains.LitecoinTestnet,
733
- network: Networks.Testnet,
734
- precision: 8,
735
- contract: undefined,
736
- provider: Providers.FIREBLOCKS,
737
- hasWithdrawMemo: false
738
- }]: [])
739
- ],
740
- image: 'https://www.proton.org/images/tokens/xtokensXLTC.png',
741
- coingeckoId: 'litecoin'
742
- },
743
- {
744
- allowSwap: false,
745
- allowBridge: true,
746
- allowLend: false,
747
- allowBorrow: false,
748
- name: 'Bitcoin Cash',
749
- coin: 'BCH',
750
- xtokenSymbol: 'XBCH',
751
- xtokenPrecision: 8,
752
- xtokenContract: 'xtokens',
753
- wallets: [
754
- ...(IS_MAINNET ? [{
755
- wallet: 'BCH',
756
- symbol: 'BCH',
757
- chain: Chains.BitcoinCashMainnet,
758
- network: Networks.Mainnet,
759
- precision: 8,
760
- contract: undefined,
761
- provider: Providers.FIREBLOCKS,
762
- hasWithdrawMemo: false
763
- }]: []),
764
- ...(IS_TESTNET ? [{
765
- wallet: 'BCH',
766
- symbol: 'BCH',
767
- chain: Chains.BitcoinCashTestnet,
768
- network: Networks.Testnet,
769
- precision: 8,
770
- contract: undefined,
771
- provider: Providers.FIREBLOCKS,
772
- hasWithdrawMemo: false
773
- }]: [])
774
- ],
775
- image: 'https://www.proton.org/images/tokens/xtokensXBCH.png',
776
- coingeckoId: 'bitcoin-cash'
777
- },
778
- {
779
- allowSwap: true,
780
- allowBridge: true,
781
- allowLend: false,
782
- allowBorrow: false,
783
- name: 'LunarCrush',
784
- coin: 'LUNR',
785
- xtokenSymbol: 'XLUNR',
786
- xtokenPrecision: 4,
787
- xtokenContract: 'xtokens',
788
- wallets: [
789
- ...(IS_MAINNET ? [{
790
- wallet: 'LUNR',
791
- symbol: 'LUNR',
792
- chain: Chains.EthereumMainnet,
793
- network: Networks.ERC20,
794
- precision: 4,
795
- contract: undefined,
796
- provider: Providers.FIREBLOCKS,
797
- hasWithdrawMemo: false
798
- }]: []),
799
- ],
800
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png',
801
- coingeckoId: 'lunr-token'
802
- },
803
- {
804
- allowSwap: false,
805
- allowBridge: IS_TESTNET,
806
- allowLend: false,
807
- allowBorrow: false,
808
- name: 'Stellar',
809
- coin: 'XLM',
810
- xtokenSymbol: 'XXLM',
811
- xtokenPrecision: 6,
812
- xtokenContract: 'xtokens',
813
- wallets: [
814
- ...(IS_MAINNET ? [{
815
- wallet: 'XLM',
816
- symbol: 'XLM',
817
- chain: Chains.StellarMainnet,
818
- network: Networks.Mainnet,
819
- precision: 7,
820
- contract: undefined,
821
- provider: Providers.FIREBLOCKS,
822
- hasWithdrawMemo: true
823
- }]: []),
824
- ...(IS_TESTNET ? [{
825
- wallet: 'XLM',
826
- symbol: 'XLM',
827
- chain: Chains.StellarTestnet,
828
- network: Networks.Testnet,
829
- precision: 7,
830
- contract: undefined,
831
- provider: Providers.FIREBLOCKS,
832
- hasWithdrawMemo: true
833
- }]: [])
834
- ],
835
- image: 'https://www.proton.org/images/tokens/xtokensXXLM.png',
836
- coingeckoId: 'stellar'
837
- },
838
- {
839
- allowSwap: false,
840
- allowBridge: false,
841
- allowLend: false,
842
- allowBorrow: false,
843
- name: 'Sense',
844
- coin: 'SENSE',
845
- xtokenSymbol: 'XSENSE',
846
- xtokenPrecision: 4,
847
- xtokenContract: 'sense',
848
- wallets: [],
849
- image: 'https://www.proton.org/images/tokens/senseXSENSE.png',
850
- coingeckoId: 'sense'
851
- },
852
- {
853
- allowSwap: false,
854
- allowBridge: false,
855
- allowLend: false,
856
- allowBorrow: false,
857
- name: 'Polkadot',
858
- coin: 'DOT',
859
- xtokenSymbol: 'XDOT',
860
- xtokenPrecision: 8,
861
- xtokenContract: 'xtokens',
862
- wallets: [
863
- ...(IS_MAINNET ? [{
864
- wallet: 'DOT',
865
- symbol: 'DOT',
866
- chain: Chains.PolkadotMainnet,
867
- network: Networks.Mainnet,
868
- precision: 10,
869
- contract: undefined,
870
- provider: Providers.FIREBLOCKS,
871
- hasWithdrawMemo: false
872
- }]: [])
873
- ],
874
- image: 'https://www.proton.org/images/tokens/xtokensXDOT.png',
875
- coingeckoId: 'polkadot'
876
- },
877
- {
878
- allowSwap: true,
879
- allowBridge: IS_MAINNET,
880
- allowLend: false,
881
- allowBorrow: false,
882
- name: 'Binance Coin',
883
- coin: 'BNB',
884
- xtokenSymbol: 'XBNB',
885
- xtokenPrecision: 8,
886
- xtokenContract: 'xtokens',
887
- wallets: [
888
- ...(IS_MAINNET ? [{
889
- wallet: 'BNB',
890
- symbol: 'BNB',
891
- chain: Chains.BinanceBEP20,
892
- network: Networks.BEP20,
893
- precision: 18,
894
- contract: undefined,
895
- provider: Providers.FIREBLOCKS,
896
- hasWithdrawMemo: false
897
- }]: [])
898
- ],
899
- image: 'https://www.proton.org/images/tokens/xtokensXBNB.png',
900
- coingeckoId: 'binancecoin'
901
- },
902
- {
903
- allowSwap: false,
904
- allowBridge: false,
905
- allowLend: false,
906
- allowBorrow: false,
907
- name: 'Binance USD',
908
- coin: 'BUSD',
909
- xtokenSymbol: 'XBUSD',
910
- xtokenPrecision: 6,
911
- xtokenContract: 'xtokens',
912
- wallets: [
913
- // ...(IS_MAINNET ? [{
914
- // wallet: 'BUSD-BEP20',
915
- // symbol: 'BUSD',
916
- // chain: Chains.BinanceBEP20,
917
- // network: Networks.BEP20,
918
- // precision: 18,
919
- // contract: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
920
- // provider: Providers.FIREBLOCKS,
921
- // hasWithdrawMemo: false
922
- // }]: [])
923
- ],
924
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png',
925
- coingeckoId: 'binance-usd'
926
- },
927
- {
928
- allowSwap: true,
929
- allowBridge: true,
930
- allowLend: false,
931
- allowBorrow: false,
932
- name: 'EOS',
933
- coin: 'EOS',
934
- xtokenSymbol: 'XEOS',
935
- xtokenPrecision: 4,
936
- xtokenContract: 'xtokens',
937
- wallets: [
938
- ...(IS_MAINNET ? [{
939
- wallet: 'EOS',
940
- symbol: 'EOS',
941
- chain: Chains.EosMainnet,
942
- network: Networks.Mainnet,
943
- precision: 4,
944
- contract: undefined,
945
- provider: Providers.FIREBLOCKS,
946
- hasWithdrawMemo: true
947
- }]: []),
948
- ...(IS_TESTNET ? [{
949
- wallet: 'EOS',
950
- symbol: 'EOS',
951
- chain: Chains.EosTestnet,
952
- network: Networks.Testnet,
953
- precision: 4,
954
- contract: undefined,
955
- provider: Providers.FIREBLOCKS,
956
- hasWithdrawMemo: true
957
- }]: [])
958
- ],
959
- image: 'https://www.proton.org/images/tokens/xtokensXEOS.png',
960
- coingeckoId: 'eos'
961
- },
962
- {
963
- allowSwap: IS_MAINNET,
964
- allowBridge: IS_MAINNET,
965
- allowLend: true,
966
- allowBorrow: true,
967
- name: 'Dogecoin',
968
- coin: 'DOGE',
969
- xtokenSymbol: 'XDOGE',
970
- xtokenPrecision: 6,
971
- xtokenContract: 'xtokens',
972
- wallets: [
973
- ...(IS_MAINNET ? [{
974
- wallet: 'DOGE',
975
- symbol: 'DOGE',
976
- chain: Chains.DogeMainnet,
977
- network: Networks.Mainnet,
978
- precision: 8,
979
- contract: undefined,
980
- provider: Providers.FIREBLOCKS,
981
- hasWithdrawMemo: false
982
- }]: []),
983
- ],
984
- image: 'https://www.proton.org/images/tokens/xtokensXDOGE.png',
985
- coingeckoId: 'dogecoin'
986
- },
987
- {
988
- allowSwap: IS_MAINNET,
989
- allowBridge: IS_MAINNET,
990
- allowLend: false,
991
- allowBorrow: false,
992
- name: 'Cardano',
993
- coin: 'ADA',
994
- xtokenSymbol: 'XADA',
995
- xtokenPrecision: 6,
996
- xtokenContract: 'xtokens',
997
- wallets: [
998
- ...(IS_MAINNET ? [{
999
- wallet: 'ADA',
1000
- symbol: 'ADA',
1001
- chain: Chains.CardanoMainnet,
1002
- network: Networks.Mainnet,
1003
- precision: 6,
1004
- contract: undefined,
1005
- provider: Providers.FIREBLOCKS,
1006
- hasWithdrawMemo: false
1007
- }]: [])
1008
- ],
1009
- image: 'https://www.proton.org/images/tokens/xtokensXADA.png',
1010
- coingeckoId: 'cardano'
1011
- },
168
+ const IS_MAINNET = protonChain === "proton";
169
+ const IS_TESTNET = protonChain === "proton-test";
170
+
171
+ const coins: Coin[] = [
172
+ {
173
+ allowSwap: true,
174
+ allowBridge: IS_MAINNET,
175
+ allowLend: true,
176
+ allowBorrow: true,
177
+ name: "Proton",
178
+ coin: "XPR",
179
+ xtokenSymbol: "XPR",
180
+ xtokenPrecision: 4,
181
+ xtokenContract: "eosio.token",
182
+ wallets: [
183
+ ...(IS_MAINNET
184
+ ? [
185
+ {
186
+ wallet: "XPR-ERC20",
187
+ symbol: "XPR",
188
+ chain: Chains.EthereumMainnet,
189
+ network: Networks.ERC20,
190
+ precision: 4,
191
+ contract: "0xD7EFB00D12C2C13131FD319336FDF952525DA2AF",
192
+ provider: Providers.FIREBLOCKS,
193
+ hasWithdrawMemo: false,
194
+ },
195
+ {
196
+ wallet: "XPR-BEP20",
197
+ symbol: "XPR",
198
+ chain: Chains.BinanceBEP20,
199
+ network: Networks.BEP20,
200
+ precision: 4,
201
+ contract: "0x5DE3939B2F811A61D830E6F52D13B066881412AB",
202
+ provider: Providers.FIREBLOCKS,
203
+ hasWithdrawMemo: false,
204
+ },
205
+ ]
206
+ : []),
207
+ ],
208
+ image: "https://www.proton.org/images/tokens/eosio-tokenXPR.png",
209
+ coingeckoId: "proton",
210
+ },
211
+ {
212
+ allowSwap: true,
213
+ allowBridge: true,
214
+ allowLend: true,
215
+ allowBorrow: true,
216
+ name: "USD Coin",
217
+ coin: "USDC",
218
+ xtokenSymbol: "XUSDC",
219
+ xtokenPrecision: 6,
220
+ xtokenContract: "xtokens",
221
+ wallets: [
222
+ ...(IS_MAINNET
223
+ ? [
224
+ {
225
+ wallet: "USDC",
226
+ symbol: "USDC",
227
+ chain: Chains.EthereumMainnet,
228
+ network: Networks.ERC20,
229
+ precision: 6,
230
+ contract: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
231
+ provider: Providers.FIREBLOCKS,
232
+ hasWithdrawMemo: false,
233
+ },
234
+ // {
235
+ // wallet: 'USDC-BEP20',
236
+ // symbol: 'USDC',
237
+ // chain: Chains.BinanceBEP20,
238
+ // network: Networks.BEP20,
239
+ // precision: 18,
240
+ // contract: '0x8AC76A51CC950D9822D68B83FE1AD97B32CD580D',
241
+ // provider: Providers.FIREBLOCKS,
242
+ // hasWithdrawMemo: false
243
+ // },
244
+ {
245
+ wallet: "USDC-XLM",
246
+ symbol: "USDC",
247
+ chain: Chains.StellarMainnet,
248
+ network: Networks.XLM,
249
+ precision: 7,
250
+ contract: undefined,
251
+ provider: Providers.FIREBLOCKS,
252
+ hasWithdrawMemo: true,
253
+ },
254
+ ]
255
+ : []),
256
+ ...(IS_TESTNET
257
+ ? [
258
+ {
259
+ wallet: "USDC",
260
+ symbol: "USDC",
261
+ chain: Chains.EthereumRopsten,
262
+ network: Networks.Ropsten,
263
+ precision: 6,
264
+ contract: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
265
+ provider: Providers.FIREBLOCKS,
266
+ hasWithdrawMemo: false,
267
+ },
268
+ {
269
+ wallet: "USDC-XLM",
270
+ symbol: "USDC",
271
+ chain: Chains.StellarTestnet,
272
+ network: Networks.XLM,
273
+ precision: 7,
274
+ contract: undefined,
275
+ provider: Providers.FIREBLOCKS,
276
+ hasWithdrawMemo: true,
277
+ },
278
+ ]
279
+ : []),
280
+ ],
281
+ image: "https://www.proton.org/images/tokens/xtokensXUSDC.png",
282
+ coingeckoId: "usd-coin",
283
+ },
284
+ {
285
+ allowSwap: true,
286
+ allowBridge: IS_MAINNET,
287
+ allowLend: true,
288
+ allowBorrow: true,
289
+ name: "Metal DAO",
290
+ coin: "MTL",
291
+ xtokenSymbol: "XMT",
292
+ xtokenPrecision: 8,
293
+ xtokenContract: "xtokens",
294
+ wallets: [
295
+ ...(IS_MAINNET
296
+ ? [
297
+ {
298
+ wallet: "MTL",
299
+ symbol: "MTL",
300
+ chain: Chains.EthereumMainnet,
301
+ network: Networks.ERC20,
302
+ precision: 8,
303
+ contract: "0xF433089366899D83A9F26A773D59EC7ECF30355E",
304
+ provider: Providers.FIREBLOCKS,
305
+ hasWithdrawMemo: false,
306
+ },
307
+ ]
308
+ : []),
309
+ ],
310
+ image: "https://www.proton.org/images/tokens/xtokensXMT.png",
311
+ coingeckoId: "metal",
312
+ },
313
+ {
314
+ allowSwap: true,
315
+ allowBridge: true,
316
+ allowLend: false,
317
+ allowBorrow: false,
318
+ name: "Metal Blockchain",
319
+ coin: "METAL",
320
+ xtokenSymbol: "METAL",
321
+ xtokenPrecision: 8,
322
+ xtokenContract: "xtokens",
323
+ wallets: [
324
+ ...(IS_TESTNET
325
+ ? [
326
+ {
327
+ wallet: "METAL",
328
+ symbol: "METAL",
329
+ chain: Chains.MetalCTestnet,
330
+ network: Networks.EVM,
331
+ precision: 18,
332
+ contract: "",
333
+ provider: Providers.METAL,
334
+ hasWithdrawMemo: false,
335
+ },
336
+ ]
337
+ : []),
338
+ ...(IS_MAINNET
339
+ ? [
340
+ {
341
+ wallet: "METAL",
342
+ symbol: "METAL",
343
+ chain: Chains.MetalCMainnet,
344
+ network: Networks.EVM,
345
+ precision: 18,
346
+ contract: "",
347
+ provider: Providers.METAL,
348
+ hasWithdrawMemo: false,
349
+ },
350
+ {
351
+ wallet: "METAL",
352
+ symbol: "METAL",
353
+ chain: Chains.EthereumMainnet,
354
+ network: Networks.ERC20,
355
+ precision: 18,
356
+ contract: "",
357
+ provider: Providers.FIREBLOCKS,
358
+ hasWithdrawMemo: false,
359
+ },
360
+ ]
361
+ : []),
362
+ ],
363
+ image:
364
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/metal-chain.png",
365
+ coingeckoId: "metal-blockchain",
366
+ },
367
+ {
368
+ allowSwap: true,
369
+ allowBridge: true,
370
+ allowLend: true,
371
+ allowBorrow: true,
372
+ name: "Bitcoin",
373
+ coin: "BTC",
374
+ xtokenSymbol: "XBTC",
375
+ xtokenPrecision: 8,
376
+ xtokenContract: "xtokens",
377
+ wallets: [
378
+ ...(IS_MAINNET
379
+ ? [
380
+ {
381
+ wallet: "BTC",
382
+ symbol: "BTC",
383
+ chain: Chains.BitcoinMainnet,
384
+ network: Networks.Mainnet,
385
+ precision: 8,
386
+ contract: undefined,
387
+ provider: Providers.FIREBLOCKS,
388
+ hasWithdrawMemo: false,
389
+ },
390
+ ]
391
+ : []),
392
+ ...(IS_TESTNET
393
+ ? [
394
+ {
395
+ wallet: "BTC",
396
+ symbol: "BTC",
397
+ chain: Chains.BitcoinTestnet,
398
+ network: Networks.Testnet,
399
+ precision: 8,
400
+ contract: undefined,
401
+ provider: Providers.FIREBLOCKS,
402
+ hasWithdrawMemo: false,
403
+ },
404
+ ]
405
+ : []),
406
+ ],
407
+ image: "https://www.proton.org/images/tokens/xtokensXBTC.png",
408
+ coingeckoId: "bitcoin",
409
+ },
410
+ {
411
+ allowSwap: true,
412
+ allowBridge: true,
413
+ allowLend: true,
414
+ allowBorrow: true,
415
+ name: "Ethereum",
416
+ coin: "ETH",
417
+ xtokenSymbol: "XETH",
418
+ xtokenPrecision: 8,
419
+ xtokenContract: "xtokens",
420
+ wallets: [
421
+ ...(IS_MAINNET
422
+ ? [
423
+ {
424
+ wallet: "ETH",
425
+ symbol: "ETH",
426
+ chain: Chains.EthereumMainnet,
427
+ network: Networks.Mainnet,
428
+ precision: 18,
429
+ contract: "0x0000000000000000000000000000000000000000",
430
+ provider: Providers.FIREBLOCKS,
431
+ hasWithdrawMemo: false,
432
+ },
433
+ ]
434
+ : []),
435
+ ...(IS_TESTNET
436
+ ? [
437
+ {
438
+ wallet: "ETH",
439
+ symbol: "ETH",
440
+ chain: Chains.EthereumRopsten,
441
+ network: Networks.Ropsten,
442
+ precision: 18,
443
+ contract: "0x0000000000000000000000000000000000000000",
444
+ provider: Providers.FIREBLOCKS,
445
+ hasWithdrawMemo: false,
446
+ },
447
+ ]
448
+ : []),
449
+ ],
450
+ image: "https://www.proton.org/images/tokens/xtokensXETH.png",
451
+ coingeckoId: "ethereum",
452
+ },
453
+ {
454
+ allowSwap: true,
455
+ allowBridge: false,
456
+ allowLend: false,
457
+ allowBorrow: false,
458
+ name: "Loan",
459
+ coin: "LOAN",
460
+ xtokenSymbol: "LOAN",
461
+ xtokenPrecision: 4,
462
+ xtokenContract: "loan.token",
463
+ wallets: [],
464
+ image:
465
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/loan.png",
466
+ coingeckoId: "proton-loan",
467
+ },
468
+ {
469
+ allowSwap: true,
470
+ allowBridge: true,
471
+ allowLend: false,
472
+ allowBorrow: false,
473
+ name: "Tether",
474
+ coin: "USDT",
475
+ xtokenSymbol: "XUSDT",
476
+ xtokenPrecision: 6,
477
+ xtokenContract: "xtokens",
478
+ wallets: [
479
+ ...(IS_MAINNET
480
+ ? [
481
+ {
482
+ wallet: "USDT",
483
+ symbol: "USDT",
484
+ chain: Chains.EthereumMainnet,
485
+ network: Networks.ERC20,
486
+ precision: 6,
487
+ contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
488
+ provider: Providers.FIREBLOCKS,
489
+ hasWithdrawMemo: false,
490
+ },
491
+ ]
492
+ : []),
493
+ ...(IS_MAINNET
494
+ ? [
495
+ {
496
+ wallet: "USDT-BEP20",
497
+ symbol: "USDT",
498
+ chain: Chains.BinanceBEP20,
499
+ network: Networks.BEP20,
500
+ precision: 18,
501
+ contract: "0x55d398326f99059fF775485246999027B3197955",
502
+ provider: Providers.FIREBLOCKS,
503
+ hasWithdrawMemo: false,
504
+ },
505
+ ]
506
+ : []),
507
+ ...(IS_TESTNET
508
+ ? [
509
+ {
510
+ wallet: "USDT",
511
+ symbol: "USDT",
512
+ chain: Chains.EthereumRopsten,
513
+ network: Networks.Ropsten,
514
+ precision: 6,
515
+ contract: "0xDAC17F958D2EE523A2206206994597C13D831EC7",
516
+ provider: Providers.FIREBLOCKS,
517
+ hasWithdrawMemo: false,
518
+ },
519
+ ]
520
+ : []),
521
+ ],
522
+ image: "https://www.proton.org/images/tokens/xtokensXUSDT.png",
523
+ coingeckoId: "tether",
524
+ },
525
+ {
526
+ allowSwap: false,
527
+ allowBridge: IS_MAINNET,
528
+ allowLend: false,
529
+ allowBorrow: false,
530
+ name: "TrueUSD",
531
+ coin: "TUSD",
532
+ xtokenSymbol: "XTUSD",
533
+ xtokenPrecision: 6,
534
+ xtokenContract: "xtokens",
535
+ wallets: [
536
+ ...(IS_MAINNET
537
+ ? [
538
+ {
539
+ wallet: "TUSD",
540
+ symbol: "TUSD",
541
+ chain: Chains.EthereumMainnet,
542
+ network: Networks.ERC20,
543
+ precision: 18,
544
+ contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
545
+ provider: Providers.FIREBLOCKS,
546
+ hasWithdrawMemo: false,
547
+ },
548
+ ]
549
+ : []),
550
+ ],
551
+ image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
552
+ coingeckoId: "true-usd",
553
+ },
554
+ {
555
+ allowSwap: false,
556
+ allowBridge: IS_MAINNET,
557
+ allowLend: false,
558
+ allowBorrow: false,
559
+ name: "Euro Coin",
560
+ coin: "EUROC",
561
+ xtokenSymbol: "XEUROC",
562
+ xtokenPrecision: 6,
563
+ xtokenContract: "xtokens",
564
+ wallets: [
565
+ ...(IS_MAINNET
566
+ ? [
567
+ {
568
+ wallet: "EUROC",
569
+ symbol: "EUROC-ERC20",
570
+ chain: Chains.EthereumMainnet,
571
+ network: Networks.ERC20,
572
+ precision: 6,
573
+ contract: "0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",
574
+ provider: Providers.FIREBLOCKS,
575
+ hasWithdrawMemo: false,
576
+ },
577
+ ]
578
+ : []),
579
+ ],
580
+ image:
581
+ "https://assets.coingecko.com/coins/images/26045/small/euro-coin.png?1655394420",
582
+ coingeckoId: "euro-coin",
583
+ },
584
+ {
585
+ allowSwap: false,
586
+ allowBridge: IS_MAINNET,
587
+ allowLend: false,
588
+ allowBorrow: false,
589
+ name: "XDC Network",
590
+ coin: "XDC",
591
+ xtokenSymbol: "XDC",
592
+ xtokenPrecision: 4,
593
+ xtokenContract: "xtokens",
594
+ wallets: [
595
+ ...(IS_MAINNET
596
+ ? [
597
+ {
598
+ wallet: "XDC",
599
+ symbol: "XDC",
600
+ chain: Chains.XDCMainnet,
601
+ network: Networks.Mainnet,
602
+ precision: 18,
603
+ contract: "",
604
+ provider: Providers.FIREBLOCKS,
605
+ hasWithdrawMemo: false,
606
+ },
607
+ ]
608
+ : []),
609
+ ],
610
+ image:
611
+ "https://assets.coingecko.com/coins/images/2912/small/xdc-icon.png?1633700890",
612
+ coingeckoId: "xdce-crowd-sale",
613
+ },
614
+ {
615
+ allowSwap: false,
616
+ allowBridge: IS_MAINNET,
617
+ allowLend: false,
618
+ allowBorrow: false,
619
+ name: "Paxos Dollar",
620
+ coin: "PAX",
621
+ xtokenSymbol: "XPAX",
622
+ xtokenPrecision: 6,
623
+ xtokenContract: "xtokens",
624
+ wallets: [
625
+ ...(IS_MAINNET
626
+ ? [
627
+ {
628
+ wallet: "PAX",
629
+ symbol: "PAX",
630
+ chain: Chains.EthereumMainnet,
631
+ network: Networks.ERC20,
632
+ precision: 18,
633
+ contract: "0x8E870D67F660D95D5BE530380D0EC0BD388289E1",
634
+ provider: Providers.FIREBLOCKS,
635
+ hasWithdrawMemo: false,
636
+ },
637
+ ]
638
+ : []),
639
+ ],
640
+ image: "https://www.proton.org/images/tokens/xtokensXPAX.png",
641
+ coingeckoId: "paxos-standard",
642
+ },
643
+ {
644
+ allowSwap: false,
645
+ allowBridge: true,
646
+ allowLend: false,
647
+ allowBorrow: false,
648
+ name: "Paxos Gold",
649
+ coin: "PAXG",
650
+ xtokenSymbol: "XPAXG",
651
+ xtokenPrecision: 8,
652
+ xtokenContract: "xtokens",
653
+ wallets: [
654
+ ...(IS_MAINNET
655
+ ? [
656
+ {
657
+ wallet: "PAXG",
658
+ symbol: "PAXG",
659
+ chain: Chains.EthereumMainnet,
660
+ network: Networks.ERC20,
661
+ precision: 18,
662
+ contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
663
+ provider: Providers.FIREBLOCKS,
664
+ hasWithdrawMemo: false,
665
+ },
666
+ ]
667
+ : []),
668
+ ...(IS_TESTNET
669
+ ? [
670
+ {
671
+ wallet: "PAXG",
672
+ symbol: "PAXG",
673
+ chain: Chains.EthereumRopsten,
674
+ network: Networks.Ropsten,
675
+ precision: 18,
676
+ contract: "0x45804880DE22913DAFE09F4980848ECE6ECBAF78",
677
+ provider: Providers.FIREBLOCKS,
678
+ hasWithdrawMemo: false,
679
+ },
680
+ ]
681
+ : []),
682
+ ],
683
+ image: "https://www.proton.org/images/tokens/xtokensXPAXG.png",
684
+ coingeckoId: "pax-gold",
685
+ },
686
+ {
687
+ allowSwap: IS_MAINNET,
688
+ allowBridge: false,
689
+ allowLend: false,
690
+ allowBorrow: false,
691
+ name: "Storex",
692
+ coin: "STRX",
693
+ xtokenSymbol: "STRX",
694
+ xtokenPrecision: 4,
695
+ xtokenContract: "storex",
696
+ wallets: [],
697
+ image:
698
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/strx.png",
699
+ coingeckoId: "",
700
+ },
701
+ {
702
+ allowSwap: false,
703
+ allowBridge: false,
704
+ allowLend: false,
705
+ allowBorrow: false,
706
+ name: "Mint",
707
+ coin: "MINT",
708
+ xtokenSymbol: "MINT",
709
+ xtokenPrecision: 4,
710
+ xtokenContract: "protonmint",
711
+ wallets: [],
712
+ image:
713
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/PMLogo-04.png",
714
+ coingeckoId: "",
715
+ },
716
+ {
717
+ allowSwap: IS_MAINNET,
718
+ allowBridge: false,
719
+ allowLend: false,
720
+ allowBorrow: false,
721
+ name: "Snipcoins",
722
+ coin: "SNIPS",
723
+ xtokenSymbol: "SNIPS",
724
+ xtokenPrecision: 4,
725
+ xtokenContract: "snipcoins",
726
+ wallets: [],
727
+ image:
728
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/snips.png",
729
+ coingeckoId: "",
730
+ },
731
+ {
732
+ allowSwap: IS_MAINNET,
733
+ allowBridge: true,
734
+ allowLend: false,
735
+ allowBorrow: false,
736
+ name: "Uniswap",
737
+ coin: "UNI",
738
+ xtokenSymbol: "XUNI",
739
+ xtokenPrecision: 6,
740
+ xtokenContract: "xtokens",
741
+ wallets: [
742
+ ...(IS_MAINNET
743
+ ? [
744
+ {
745
+ wallet: "UNI",
746
+ symbol: "UNI",
747
+ chain: Chains.EthereumMainnet,
748
+ network: Networks.ERC20,
749
+ precision: 18,
750
+ contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
751
+ provider: Providers.FIREBLOCKS,
752
+ hasWithdrawMemo: false,
753
+ },
754
+ ]
755
+ : []),
756
+ ...(IS_TESTNET
757
+ ? [
758
+ {
759
+ wallet: "UNI",
760
+ symbol: "UNI",
761
+ chain: Chains.EthereumRopsten,
762
+ network: Networks.Ropsten,
763
+ precision: 18,
764
+ contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
765
+ provider: Providers.FIREBLOCKS,
766
+ hasWithdrawMemo: false,
767
+ },
768
+ ]
769
+ : []),
770
+ ],
771
+ image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
772
+ coingeckoId: "uniswap",
773
+ },
774
+ {
775
+ allowSwap: false,
776
+ allowBridge: false,
777
+ allowLend: false,
778
+ allowBorrow: false,
779
+ name: "1INCH",
780
+ coin: "1INCH",
781
+ xtokenSymbol: "XINCH",
782
+ xtokenPrecision: 6,
783
+ xtokenContract: "xtokens",
784
+ wallets: [
785
+ ...(IS_MAINNET
786
+ ? [
787
+ {
788
+ wallet: "1INCH",
789
+ symbol: "1INCH",
790
+ chain: Chains.EthereumMainnet,
791
+ network: Networks.ERC20,
792
+ precision: 18,
793
+ contract: "0x111111111117DC0AA78B770FA6A738034120C302",
794
+ provider: Providers.FIREBLOCKS,
795
+ hasWithdrawMemo: false,
796
+ },
797
+ ]
798
+ : []),
799
+ ],
800
+ image: "https://www.proton.org/images/tokens/xtokensXINCH.png",
801
+ coingeckoId: "1inch",
802
+ },
803
+ {
804
+ allowSwap: false,
805
+ allowBridge: false,
806
+ allowLend: false,
807
+ allowBorrow: false,
808
+ name: "Chainlink",
809
+ coin: "LINK",
810
+ xtokenSymbol: "XLINK",
811
+ xtokenPrecision: 6,
812
+ xtokenContract: "xtokens",
813
+ wallets: [
814
+ ...(IS_MAINNET
815
+ ? [
816
+ {
817
+ wallet: "LINK",
818
+ symbol: "LINK",
819
+ chain: Chains.EthereumMainnet,
820
+ network: Networks.ERC20,
821
+ precision: 18,
822
+ contract: "0x514910771AF9CA656AF840DFF83E8264ECF986CA",
823
+ provider: Providers.FIREBLOCKS,
824
+ hasWithdrawMemo: false,
825
+ },
826
+ ]
827
+ : []),
828
+ ],
829
+ image: "https://www.proton.org/images/tokens/xtokensXLINK.png",
830
+ coingeckoId: "chainlink",
831
+ },
832
+ {
833
+ allowSwap: IS_MAINNET,
834
+ allowBridge: true,
835
+ allowLend: false,
836
+ allowBorrow: false,
837
+ name: "Litecoin",
838
+ coin: "LTC",
839
+ xtokenSymbol: "XLTC",
840
+ xtokenPrecision: 8,
841
+ xtokenContract: "xtokens",
842
+ wallets: [
843
+ ...(IS_MAINNET
844
+ ? [
845
+ {
846
+ wallet: "LTC",
847
+ symbol: "LTC",
848
+ chain: Chains.LitecoinMainnet,
849
+ network: Networks.Mainnet,
850
+ precision: 8,
851
+ contract: undefined,
852
+ provider: Providers.FIREBLOCKS,
853
+ hasWithdrawMemo: false,
854
+ },
855
+ ]
856
+ : []),
857
+ ...(IS_TESTNET
858
+ ? [
859
+ {
860
+ wallet: "LTC",
861
+ symbol: "LTC",
862
+ chain: Chains.LitecoinTestnet,
863
+ network: Networks.Testnet,
864
+ precision: 8,
865
+ contract: undefined,
866
+ provider: Providers.FIREBLOCKS,
867
+ hasWithdrawMemo: false,
868
+ },
869
+ ]
870
+ : []),
871
+ ],
872
+ image: "https://www.proton.org/images/tokens/xtokensXLTC.png",
873
+ coingeckoId: "litecoin",
874
+ },
875
+ {
876
+ allowSwap: false,
877
+ allowBridge: true,
878
+ allowLend: false,
879
+ allowBorrow: false,
880
+ name: "Bitcoin Cash",
881
+ coin: "BCH",
882
+ xtokenSymbol: "XBCH",
883
+ xtokenPrecision: 8,
884
+ xtokenContract: "xtokens",
885
+ wallets: [
886
+ ...(IS_MAINNET
887
+ ? [
888
+ {
889
+ wallet: "BCH",
890
+ symbol: "BCH",
891
+ chain: Chains.BitcoinCashMainnet,
892
+ network: Networks.Mainnet,
893
+ precision: 8,
894
+ contract: undefined,
895
+ provider: Providers.FIREBLOCKS,
896
+ hasWithdrawMemo: false,
897
+ },
898
+ ]
899
+ : []),
900
+ ...(IS_TESTNET
901
+ ? [
902
+ {
903
+ wallet: "BCH",
904
+ symbol: "BCH",
905
+ chain: Chains.BitcoinCashTestnet,
906
+ network: Networks.Testnet,
907
+ precision: 8,
908
+ contract: undefined,
909
+ provider: Providers.FIREBLOCKS,
910
+ hasWithdrawMemo: false,
911
+ },
912
+ ]
913
+ : []),
914
+ ],
915
+ image: "https://www.proton.org/images/tokens/xtokensXBCH.png",
916
+ coingeckoId: "bitcoin-cash",
917
+ },
918
+ {
919
+ allowSwap: true,
920
+ allowBridge: true,
921
+ allowLend: false,
922
+ allowBorrow: false,
923
+ name: "LunarCrush",
924
+ coin: "LUNR",
925
+ xtokenSymbol: "XLUNR",
926
+ xtokenPrecision: 4,
927
+ xtokenContract: "xtokens",
928
+ wallets: [
929
+ ...(IS_MAINNET
930
+ ? [
931
+ {
932
+ wallet: "LUNR",
933
+ symbol: "LUNR",
934
+ chain: Chains.EthereumMainnet,
935
+ network: Networks.ERC20,
936
+ precision: 4,
937
+ contract: undefined,
938
+ provider: Providers.FIREBLOCKS,
939
+ hasWithdrawMemo: false,
940
+ },
941
+ ]
942
+ : []),
943
+ ],
944
+ image:
945
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xlunr.png",
946
+ coingeckoId: "lunr-token",
947
+ },
948
+ {
949
+ allowSwap: false,
950
+ allowBridge: IS_TESTNET,
951
+ allowLend: false,
952
+ allowBorrow: false,
953
+ name: "Stellar",
954
+ coin: "XLM",
955
+ xtokenSymbol: "XXLM",
956
+ xtokenPrecision: 6,
957
+ xtokenContract: "xtokens",
958
+ wallets: [
959
+ ...(IS_MAINNET
960
+ ? [
961
+ {
962
+ wallet: "XLM",
963
+ symbol: "XLM",
964
+ chain: Chains.StellarMainnet,
965
+ network: Networks.Mainnet,
966
+ precision: 7,
967
+ contract: undefined,
968
+ provider: Providers.FIREBLOCKS,
969
+ hasWithdrawMemo: true,
970
+ },
971
+ ]
972
+ : []),
973
+ ...(IS_TESTNET
974
+ ? [
975
+ {
976
+ wallet: "XLM",
977
+ symbol: "XLM",
978
+ chain: Chains.StellarTestnet,
979
+ network: Networks.Testnet,
980
+ precision: 7,
981
+ contract: undefined,
982
+ provider: Providers.FIREBLOCKS,
983
+ hasWithdrawMemo: true,
984
+ },
985
+ ]
986
+ : []),
987
+ ],
988
+ image: "https://www.proton.org/images/tokens/xtokensXXLM.png",
989
+ coingeckoId: "stellar",
990
+ },
991
+ {
992
+ allowSwap: false,
993
+ allowBridge: false,
994
+ allowLend: false,
995
+ allowBorrow: false,
996
+ name: "Sense",
997
+ coin: "SENSE",
998
+ xtokenSymbol: "XSENSE",
999
+ xtokenPrecision: 4,
1000
+ xtokenContract: "sense",
1001
+ wallets: [],
1002
+ image: "https://www.proton.org/images/tokens/senseXSENSE.png",
1003
+ coingeckoId: "sense",
1004
+ },
1005
+ {
1006
+ allowSwap: false,
1007
+ allowBridge: false,
1008
+ allowLend: false,
1009
+ allowBorrow: false,
1010
+ name: "Polkadot",
1011
+ coin: "DOT",
1012
+ xtokenSymbol: "XDOT",
1013
+ xtokenPrecision: 8,
1014
+ xtokenContract: "xtokens",
1015
+ wallets: [
1016
+ ...(IS_MAINNET
1017
+ ? [
1018
+ {
1019
+ wallet: "DOT",
1020
+ symbol: "DOT",
1021
+ chain: Chains.PolkadotMainnet,
1022
+ network: Networks.Mainnet,
1023
+ precision: 10,
1024
+ contract: undefined,
1025
+ provider: Providers.FIREBLOCKS,
1026
+ hasWithdrawMemo: false,
1027
+ },
1028
+ ]
1029
+ : []),
1030
+ ],
1031
+ image: "https://www.proton.org/images/tokens/xtokensXDOT.png",
1032
+ coingeckoId: "polkadot",
1033
+ },
1034
+ {
1035
+ allowSwap: true,
1036
+ allowBridge: IS_MAINNET,
1037
+ allowLend: false,
1038
+ allowBorrow: false,
1039
+ name: "Binance Coin",
1040
+ coin: "BNB",
1041
+ xtokenSymbol: "XBNB",
1042
+ xtokenPrecision: 8,
1043
+ xtokenContract: "xtokens",
1044
+ wallets: [
1045
+ ...(IS_MAINNET
1046
+ ? [
1047
+ {
1048
+ wallet: "BNB",
1049
+ symbol: "BNB",
1050
+ chain: Chains.BinanceBEP20,
1051
+ network: Networks.BEP20,
1052
+ precision: 18,
1053
+ contract: undefined,
1054
+ provider: Providers.FIREBLOCKS,
1055
+ hasWithdrawMemo: false,
1056
+ },
1057
+ ]
1058
+ : []),
1059
+ ],
1060
+ image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
1061
+ coingeckoId: "binancecoin",
1062
+ },
1063
+ {
1064
+ allowSwap: false,
1065
+ allowBridge: false,
1066
+ allowLend: false,
1067
+ allowBorrow: false,
1068
+ name: "Binance USD",
1069
+ coin: "BUSD",
1070
+ xtokenSymbol: "XBUSD",
1071
+ xtokenPrecision: 6,
1072
+ xtokenContract: "xtokens",
1073
+ wallets: [
1074
+ // ...(IS_MAINNET ? [{
1075
+ // wallet: 'BUSD-BEP20',
1076
+ // symbol: 'BUSD',
1077
+ // chain: Chains.BinanceBEP20,
1078
+ // network: Networks.BEP20,
1079
+ // precision: 18,
1080
+ // contract: '0xe9e7cea3dedca5984780bafc599bd69add087d56',
1081
+ // provider: Providers.FIREBLOCKS,
1082
+ // hasWithdrawMemo: false
1083
+ // }]: [])
1084
+ ],
1085
+ image:
1086
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xbusd.png",
1087
+ coingeckoId: "binance-usd",
1088
+ },
1089
+ {
1090
+ allowSwap: true,
1091
+ allowBridge: true,
1092
+ allowLend: false,
1093
+ allowBorrow: false,
1094
+ name: "EOS",
1095
+ coin: "EOS",
1096
+ xtokenSymbol: "XEOS",
1097
+ xtokenPrecision: 4,
1098
+ xtokenContract: "xtokens",
1099
+ wallets: [
1100
+ ...(IS_MAINNET
1101
+ ? [
1102
+ {
1103
+ wallet: "EOS",
1104
+ symbol: "EOS",
1105
+ chain: Chains.EosMainnet,
1106
+ network: Networks.Mainnet,
1107
+ precision: 4,
1108
+ contract: undefined,
1109
+ provider: Providers.FIREBLOCKS,
1110
+ hasWithdrawMemo: true,
1111
+ },
1112
+ ]
1113
+ : []),
1114
+ ...(IS_TESTNET
1115
+ ? [
1116
+ {
1117
+ wallet: "EOS",
1118
+ symbol: "EOS",
1119
+ chain: Chains.EosTestnet,
1120
+ network: Networks.Testnet,
1121
+ precision: 4,
1122
+ contract: undefined,
1123
+ provider: Providers.FIREBLOCKS,
1124
+ hasWithdrawMemo: true,
1125
+ },
1126
+ ]
1127
+ : []),
1128
+ ],
1129
+ image: "https://www.proton.org/images/tokens/xtokensXEOS.png",
1130
+ coingeckoId: "eos",
1131
+ },
1132
+ {
1133
+ allowSwap: IS_MAINNET,
1134
+ allowBridge: IS_MAINNET,
1135
+ allowLend: true,
1136
+ allowBorrow: true,
1137
+ name: "Dogecoin",
1138
+ coin: "DOGE",
1139
+ xtokenSymbol: "XDOGE",
1140
+ xtokenPrecision: 6,
1141
+ xtokenContract: "xtokens",
1142
+ wallets: [
1143
+ ...(IS_MAINNET
1144
+ ? [
1145
+ {
1146
+ wallet: "DOGE",
1147
+ symbol: "DOGE",
1148
+ chain: Chains.DogeMainnet,
1149
+ network: Networks.Mainnet,
1150
+ precision: 8,
1151
+ contract: undefined,
1152
+ provider: Providers.FIREBLOCKS,
1153
+ hasWithdrawMemo: false,
1154
+ },
1155
+ ]
1156
+ : []),
1157
+ ],
1158
+ image: "https://www.proton.org/images/tokens/xtokensXDOGE.png",
1159
+ coingeckoId: "dogecoin",
1160
+ },
1161
+ {
1162
+ allowSwap: IS_MAINNET,
1163
+ allowBridge: IS_MAINNET,
1164
+ allowLend: false,
1165
+ allowBorrow: false,
1166
+ name: "Cardano",
1167
+ coin: "ADA",
1168
+ xtokenSymbol: "XADA",
1169
+ xtokenPrecision: 6,
1170
+ xtokenContract: "xtokens",
1171
+ wallets: [
1172
+ ...(IS_MAINNET
1173
+ ? [
1174
+ {
1175
+ wallet: "ADA",
1176
+ symbol: "ADA",
1177
+ chain: Chains.CardanoMainnet,
1178
+ network: Networks.Mainnet,
1179
+ precision: 6,
1180
+ contract: undefined,
1181
+ provider: Providers.FIREBLOCKS,
1182
+ hasWithdrawMemo: false,
1183
+ },
1184
+ ]
1185
+ : []),
1186
+ ],
1187
+ image: "https://www.proton.org/images/tokens/xtokensXADA.png",
1188
+ coingeckoId: "cardano",
1189
+ },
1012
1190
 
1013
- // Adding
1014
- {
1015
- allowSwap: false,
1016
- allowBridge: false,
1017
- allowLend: false,
1018
- allowBorrow: false,
1019
- name: 'Terra',
1020
- coin: 'LUNA',
1021
- xtokenSymbol: 'XLUNA',
1022
- xtokenPrecision: 6,
1023
- xtokenContract: 'xtokens',
1024
- wallets: [
1025
- // ...(IS_MAINNET ? [{
1026
- // wallet: 'LUNA',
1027
- // symbol: 'LUNA',
1028
- // chain: Chains.TerraMainnet,
1029
- // network: Networks.Mainnet,
1030
- // precision: 6,
1031
- // contract: undefined,
1032
- // provider: Providers.FIREBLOCKS,
1033
- // hasWithdrawMemo: true
1034
- // }]: [])
1035
- ],
1036
- image: 'https://www.proton.org/images/tokens/xtokensXLUNA.png',
1037
- coingeckoId: 'terra-luna'
1038
- },
1039
- {
1040
- allowSwap: false,
1041
- allowBridge: false,
1042
- allowLend: false,
1043
- allowBorrow: false,
1044
- name: 'TerraUSD',
1045
- coin: 'UST',
1046
- xtokenSymbol: 'XUST',
1047
- xtokenPrecision: 6,
1048
- xtokenContract: 'xtokens',
1049
- wallets: [
1050
- ...(IS_MAINNET ? [{
1051
- wallet: 'UST',
1052
- symbol: 'UST',
1053
- chain: Chains.TerraMainnet,
1054
- network: Networks.Mainnet,
1055
- precision: 6,
1056
- contract: undefined,
1057
- provider: Providers.FIREBLOCKS,
1058
- hasWithdrawMemo: true
1059
- }]: [])
1060
- ],
1061
- image: 'https://www.proton.org/images/tokens/xtokensXUST.png',
1062
- coingeckoId: 'terrausd'
1063
- },
1064
- {
1065
- allowSwap: false,
1066
- allowBridge: IS_MAINNET,
1067
- allowLend: false,
1068
- allowBorrow: false,
1069
- name: 'Solana',
1070
- coin: 'SOL',
1071
- xtokenSymbol: 'XSOL',
1072
- xtokenPrecision: 6,
1073
- xtokenContract: 'xtokens',
1074
- wallets: [
1075
- ...(IS_MAINNET ? [{
1076
- wallet: 'SOL',
1077
- symbol: 'SOL',
1078
- chain: Chains.SolanaMainnet,
1079
- network: Networks.Mainnet,
1080
- precision: 9,
1081
- contract: undefined,
1082
- provider: Providers.FIREBLOCKS,
1083
- hasWithdrawMemo: false
1084
- }]: [])
1085
- ],
1086
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png',
1087
- coingeckoId: 'solana'
1088
- },
1089
- {
1090
- allowSwap: false,
1091
- allowBridge: IS_MAINNET,
1092
- allowLend: false,
1093
- allowBorrow: false,
1094
- name: 'Ripple',
1095
- coin: 'XRP',
1096
- xtokenSymbol: 'XXRP',
1097
- xtokenPrecision: 6,
1098
- xtokenContract: 'xtokens',
1099
- wallets: [
1100
- ...(IS_MAINNET ? [{
1101
- wallet: 'XRP',
1102
- symbol: 'XRP',
1103
- chain: Chains.RippleMainnet,
1104
- network: Networks.Mainnet,
1105
- precision: 6,
1106
- contract: undefined,
1107
- provider: Providers.FIREBLOCKS,
1108
- hasWithdrawMemo: true
1109
- }]: [])
1110
- ],
1111
- image: 'https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png',
1112
- coingeckoId: 'ripple'
1113
- },
1191
+ // Adding
1192
+ {
1193
+ allowSwap: false,
1194
+ allowBridge: false,
1195
+ allowLend: false,
1196
+ allowBorrow: false,
1197
+ name: "Terra",
1198
+ coin: "LUNA",
1199
+ xtokenSymbol: "XLUNA",
1200
+ xtokenPrecision: 6,
1201
+ xtokenContract: "xtokens",
1202
+ wallets: [
1203
+ // ...(IS_MAINNET ? [{
1204
+ // wallet: 'LUNA',
1205
+ // symbol: 'LUNA',
1206
+ // chain: Chains.TerraMainnet,
1207
+ // network: Networks.Mainnet,
1208
+ // precision: 6,
1209
+ // contract: undefined,
1210
+ // provider: Providers.FIREBLOCKS,
1211
+ // hasWithdrawMemo: true
1212
+ // }]: [])
1213
+ ],
1214
+ image: "https://www.proton.org/images/tokens/xtokensXLUNA.png",
1215
+ coingeckoId: "terra-luna",
1216
+ },
1217
+ {
1218
+ allowSwap: false,
1219
+ allowBridge: false,
1220
+ allowLend: false,
1221
+ allowBorrow: false,
1222
+ name: "TerraUSD",
1223
+ coin: "UST",
1224
+ xtokenSymbol: "XUST",
1225
+ xtokenPrecision: 6,
1226
+ xtokenContract: "xtokens",
1227
+ wallets: [
1228
+ ...(IS_MAINNET
1229
+ ? [
1230
+ {
1231
+ wallet: "UST",
1232
+ symbol: "UST",
1233
+ chain: Chains.TerraMainnet,
1234
+ network: Networks.Mainnet,
1235
+ precision: 6,
1236
+ contract: undefined,
1237
+ provider: Providers.FIREBLOCKS,
1238
+ hasWithdrawMemo: true,
1239
+ },
1240
+ ]
1241
+ : []),
1242
+ ],
1243
+ image: "https://www.proton.org/images/tokens/xtokensXUST.png",
1244
+ coingeckoId: "terrausd",
1245
+ },
1246
+ {
1247
+ allowSwap: false,
1248
+ allowBridge: IS_MAINNET,
1249
+ allowLend: false,
1250
+ allowBorrow: false,
1251
+ name: "Solana",
1252
+ coin: "SOL",
1253
+ xtokenSymbol: "XSOL",
1254
+ xtokenPrecision: 6,
1255
+ xtokenContract: "xtokens",
1256
+ wallets: [
1257
+ ...(IS_MAINNET
1258
+ ? [
1259
+ {
1260
+ wallet: "SOL",
1261
+ symbol: "SOL",
1262
+ chain: Chains.SolanaMainnet,
1263
+ network: Networks.Mainnet,
1264
+ precision: 9,
1265
+ contract: undefined,
1266
+ provider: Providers.FIREBLOCKS,
1267
+ hasWithdrawMemo: false,
1268
+ },
1269
+ ]
1270
+ : []),
1271
+ ],
1272
+ image:
1273
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xsol.png",
1274
+ coingeckoId: "solana",
1275
+ },
1276
+ {
1277
+ allowSwap: false,
1278
+ allowBridge: IS_MAINNET,
1279
+ allowLend: false,
1280
+ allowBorrow: false,
1281
+ name: "Ripple",
1282
+ coin: "XRP",
1283
+ xtokenSymbol: "XXRP",
1284
+ xtokenPrecision: 6,
1285
+ xtokenContract: "xtokens",
1286
+ wallets: [
1287
+ ...(IS_MAINNET
1288
+ ? [
1289
+ {
1290
+ wallet: "XRP",
1291
+ symbol: "XRP",
1292
+ chain: Chains.RippleMainnet,
1293
+ network: Networks.Mainnet,
1294
+ precision: 6,
1295
+ contract: undefined,
1296
+ provider: Providers.FIREBLOCKS,
1297
+ hasWithdrawMemo: true,
1298
+ },
1299
+ ]
1300
+ : []),
1301
+ ],
1302
+ image:
1303
+ "https://raw.githubusercontent.com/eoscafe/eos-airdrops/master/logos/xxrp.png",
1304
+ coingeckoId: "ripple",
1305
+ },
1114
1306
 
1115
- // Future
1116
- {
1117
- allowSwap: false,
1118
- allowBridge: false,
1119
- allowLend: false,
1120
- allowBorrow: false,
1121
- name: 'Avalanche',
1122
- coin: 'AVAX',
1123
- xtokenSymbol: 'XAVAX',
1124
- xtokenPrecision: 9,
1125
- xtokenContract: 'xtokens',
1126
- wallets: [
1127
- ...(IS_MAINNET ? [
1128
- {
1129
- wallet: 'AVAX',
1130
- symbol: 'AVAX',
1131
- chain: Chains.AvalancheCChain,
1132
- network: Networks.Mainnet,
1133
- precision: 9,
1134
- contract: undefined,
1135
- provider: Providers.FIREBLOCKS,
1136
- hasWithdrawMemo: false
1137
- }
1138
- ]: [])
1139
- ],
1140
- image: 'https://www.proton.org/images/tokens/xtokensXAVAX.png',
1141
- coingeckoId: 'avalanche-2'
1142
- },
1143
- {
1144
- allowSwap: false,
1145
- allowBridge: false,
1146
- allowLend: false,
1147
- allowBorrow: false,
1148
- name: 'Polygon',
1149
- coin: 'MATIC',
1150
- xtokenSymbol: 'XMATIC',
1151
- xtokenPrecision: 8,
1152
- xtokenContract: 'xtokens',
1153
- wallets: [
1154
- ...(IS_MAINNET ? [{
1155
- wallet: 'MATIC',
1156
- symbol: 'MATIC',
1157
- chain: Chains.PolygonMainnet,
1158
- network: Networks.Mainnet,
1159
- precision: 18,
1160
- contract: '0x0000000000000000000000000000000000000000',
1161
- provider: Providers.FIREBLOCKS,
1162
- hasWithdrawMemo: false
1163
- }]: [])
1164
- ],
1165
- image: 'https://www.proton.org/images/tokens/xtokensXMATIC.png',
1166
- coingeckoId: 'matic-network'
1167
- },
1168
- {
1169
- allowSwap: true,
1170
- allowBridge: false,
1171
- allowLend: false,
1172
- allowBorrow: false,
1173
- name: 'Metal Dollar',
1174
- coin: 'XMD',
1175
- xtokenSymbol: 'XMD',
1176
- xtokenPrecision: 6,
1177
- xtokenContract: 'xmd.token',
1178
- wallets: [],
1179
- image: 'https://github.com/eoscafe/eos-airdrops/blob/master/logos/xmd.png?raw=true',
1180
- coingeckoId: ''
1181
- },
1182
- {
1183
- allowSwap: false,
1184
- allowBridge: IS_TESTNET,
1185
- allowLend: false,
1186
- allowBorrow: false,
1187
- name: 'HBAR',
1188
- coin: 'HBAR',
1189
- xtokenSymbol: 'XHBAR',
1190
- xtokenPrecision: 6,
1191
- xtokenContract: 'xtokens',
1192
- wallets: [
1193
- ...(IS_TESTNET ? [{
1194
- wallet: 'HBAR',
1195
- symbol: 'HBAR',
1196
- chain: Chains.HederaTestnet,
1197
- network: Networks.Testnet,
1198
- precision: 8,
1199
- contract: undefined,
1200
- provider: Providers.FIREBLOCKS,
1201
- hasWithdrawMemo: true
1202
- }]: [])
1203
- ],
1204
- image: 'https://www.proton.org/images/tokens/xtokensXHBAR.png',
1205
- coingeckoId: 'hedera-hashgraph'
1206
- }
1207
- ]
1307
+ // Future
1308
+ {
1309
+ allowSwap: false,
1310
+ allowBridge: false,
1311
+ allowLend: false,
1312
+ allowBorrow: false,
1313
+ name: "Avalanche",
1314
+ coin: "AVAX",
1315
+ xtokenSymbol: "XAVAX",
1316
+ xtokenPrecision: 9,
1317
+ xtokenContract: "xtokens",
1318
+ wallets: [
1319
+ ...(IS_MAINNET
1320
+ ? [
1321
+ {
1322
+ wallet: "AVAX",
1323
+ symbol: "AVAX",
1324
+ chain: Chains.AvalancheCChain,
1325
+ network: Networks.Mainnet,
1326
+ precision: 9,
1327
+ contract: undefined,
1328
+ provider: Providers.FIREBLOCKS,
1329
+ hasWithdrawMemo: false,
1330
+ },
1331
+ ]
1332
+ : []),
1333
+ ],
1334
+ image: "https://www.proton.org/images/tokens/xtokensXAVAX.png",
1335
+ coingeckoId: "avalanche-2",
1336
+ },
1337
+ {
1338
+ allowSwap: false,
1339
+ allowBridge: false,
1340
+ allowLend: false,
1341
+ allowBorrow: false,
1342
+ name: "Polygon",
1343
+ coin: "MATIC",
1344
+ xtokenSymbol: "XMATIC",
1345
+ xtokenPrecision: 8,
1346
+ xtokenContract: "xtokens",
1347
+ wallets: [
1348
+ ...(IS_MAINNET
1349
+ ? [
1350
+ {
1351
+ wallet: "MATIC",
1352
+ symbol: "MATIC",
1353
+ chain: Chains.PolygonMainnet,
1354
+ network: Networks.Mainnet,
1355
+ precision: 18,
1356
+ contract: "0x0000000000000000000000000000000000000000",
1357
+ provider: Providers.FIREBLOCKS,
1358
+ hasWithdrawMemo: false,
1359
+ },
1360
+ ]
1361
+ : []),
1362
+ ],
1363
+ image: "https://www.proton.org/images/tokens/xtokensXMATIC.png",
1364
+ coingeckoId: "matic-network",
1365
+ },
1366
+ {
1367
+ allowSwap: true,
1368
+ allowBridge: false,
1369
+ allowLend: false,
1370
+ allowBorrow: false,
1371
+ name: "Metal Dollar",
1372
+ coin: "XMD",
1373
+ xtokenSymbol: "XMD",
1374
+ xtokenPrecision: 6,
1375
+ xtokenContract: "xmd.token",
1376
+ wallets: [],
1377
+ image:
1378
+ "https://github.com/eoscafe/eos-airdrops/blob/master/logos/xmd.png?raw=true",
1379
+ coingeckoId: "",
1380
+ },
1381
+ {
1382
+ allowSwap: false,
1383
+ allowBridge: IS_TESTNET,
1384
+ allowLend: false,
1385
+ allowBorrow: false,
1386
+ name: "HBAR",
1387
+ coin: "HBAR",
1388
+ xtokenSymbol: "XHBAR",
1389
+ xtokenPrecision: 6,
1390
+ xtokenContract: "xtokens",
1391
+ wallets: [
1392
+ ...(IS_TESTNET
1393
+ ? [
1394
+ {
1395
+ wallet: "HBAR",
1396
+ symbol: "HBAR",
1397
+ chain: Chains.HederaTestnet,
1398
+ network: Networks.Testnet,
1399
+ precision: 8,
1400
+ contract: undefined,
1401
+ provider: Providers.FIREBLOCKS,
1402
+ hasWithdrawMemo: true,
1403
+ },
1404
+ ]
1405
+ : []),
1406
+ ],
1407
+ image: "https://www.proton.org/images/tokens/xtokensXHBAR.png",
1408
+ coingeckoId: "hedera-hashgraph",
1409
+ },
1410
+ ];
1208
1411
 
1209
- // Validation
1210
- const walletWithDuplicateChains = coins.find(coin => {
1211
- const chains = coin.wallets.map(wallet => wallet.chain)
1212
- return new Set(chains).size !== chains.length
1213
- })
1214
- if (walletWithDuplicateChains) {
1215
- throw new Error(`Coin ${walletWithDuplicateChains.coin} has duplicate chains in wallet`)
1216
- }
1412
+ // Validation
1413
+ const walletWithDuplicateChains = coins.find((coin) => {
1414
+ const chains = coin.wallets.map((wallet) => wallet.chain);
1415
+ return new Set(chains).size !== chains.length;
1416
+ });
1417
+ if (walletWithDuplicateChains) {
1418
+ throw new Error(
1419
+ `Coin ${walletWithDuplicateChains.coin} has duplicate chains in wallet`
1420
+ );
1421
+ }
1217
1422
 
1218
- return {
1219
- allCoins: coins,
1220
- swapCoins: coins.filter(coin => coin.allowSwap),
1221
- bridgeCoins: coins.filter(coin => coin.allowBridge),
1222
- lendCoins: coins.filter(coin => coin.allowLend),
1223
- borrowCoins: coins.filter(coin => coin.allowBorrow),
1224
- loanCoins: coins.filter(coin => coin.allowLend || coin.allowBorrow),
1225
- allEnabledCoins: coins.filter(coin => coin.allowSwap || coin.allowBridge || coin.xtokenSymbol === 'XMD')
1226
- }
1227
- }
1423
+ return {
1424
+ allCoins: coins,
1425
+ swapCoins: coins.filter((coin) => coin.allowSwap),
1426
+ bridgeCoins: coins.filter((coin) => coin.allowBridge),
1427
+ lendCoins: coins.filter((coin) => coin.allowLend),
1428
+ borrowCoins: coins.filter((coin) => coin.allowBorrow),
1429
+ loanCoins: coins.filter((coin) => coin.allowLend || coin.allowBorrow),
1430
+ allEnabledCoins: coins.filter(
1431
+ (coin) =>
1432
+ coin.allowSwap || coin.allowBridge || coin.xtokenSymbol === "XMD"
1433
+ ),
1434
+ };
1435
+ };