This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
forked from PeggyJV/sommelier-strangelove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tokenConfig.ts
234 lines (230 loc) · 5.54 KB
/
tokenConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
export interface Token {
src: string
alt: string
symbol: string
address: string
coinGeckoId: string
}
/**
*
* tokenConfig is for storing the all token data that used in the app
*/
export const tokenConfig: Token[] = [
{
src: "/assets/icons/eth.png",
alt: "Ethereum logo",
symbol: "WETH",
address: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
coinGeckoId: "weth",
},
{
src: "/assets/icons/wbtc.png",
alt: "Bitcoin logo",
symbol: "WBTC",
address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
coinGeckoId: "wrapped-bitcoin",
},
{
src: "/assets/icons/usdc.png",
alt: "USD Coin logo",
symbol: "USDC",
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
coinGeckoId: "usd-coin",
},
{
src: "/assets/icons/ampl.png",
alt: "Ampleforth logo",
symbol: "AMPL",
address: "0xd46ba6d942050d489dbd938a2c909a5d5039a161",
coinGeckoId: "ampleforth",
},
{
src: "/assets/icons/busd.png",
alt: "Binance USD logo",
symbol: "BUSD",
address: "0x4Fabb145d64652a948d72533023f6E7A623C7C53",
coinGeckoId: "binance-usd",
},
{
src: "/assets/icons/dai.png",
alt: "Dai logo",
symbol: "DAI",
address: "0x6b175474e89094c44da98b954eedeac495271d0f",
coinGeckoId: "dai",
},
{
src: "/assets/icons/frax.png",
alt: "Frax logo",
symbol: "FRAX",
address: "0x853d955acef822db058eb8505911ed77f175b99e",
coinGeckoId: "frax",
},
{
src: "/assets/icons/gusd.png",
alt: "Gemini Dollar logo",
symbol: "GUSD",
address: "0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd",
coinGeckoId: "gemini-dollar",
},
{
src: "/assets/icons/usdp.png",
alt: "Pax Dollar logo",
symbol: "USDP",
address: "0x8e870d67f660d95d5be530380d0ec0bd388289e1",
coinGeckoId: "pax-dollar",
},
{
src: "/assets/icons/rai.png",
alt: "Rai Reflex Index logo",
symbol: "RAI",
address: "0x03ab458634910aad20ef5f1c8ee96f1d6ac54919",
coinGeckoId: "rai",
},
{
src: "/assets/icons/susd.png",
alt: "sUSD logo",
symbol: "sUSD",
address: "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51",
coinGeckoId: "susd",
},
{
src: "/assets/icons/tusd.png",
alt: "TrueUSD logo",
symbol: "TUSD",
address: "0x0000000000085d4780B73119b644AE5ecd22b376",
coinGeckoId: "true-usd",
},
{
src: "/assets/icons/usdt.png",
alt: "Tether logo",
symbol: "USDT",
address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
coinGeckoId: "tether",
},
{
src: "/assets/icons/uniswap.png",
alt: "Uniswap logo",
symbol: "UNI",
address: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
coinGeckoId: "uniswap",
},
{
src: "/assets/icons/matic.png",
alt: "Matic logo",
symbol: "MATIC",
address: "0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0",
coinGeckoId: "matic-network",
},
{
src: "/assets/icons/cbETH.png",
alt: "cbETH logo",
symbol: "cbETH",
address: "0xbe9895146f7af43049ca1c1ae358b0541ea49704",
coinGeckoId: "coinbase-wrapped-staked-eth",
},
{
src: "/assets/icons/rETH.png",
alt: "rETH logo",
symbol: "rETH",
address: "0xae78736cd615f374d3085123a210448e74fc6393",
coinGeckoId: "rocket-pool-eth",
},
{
src: "/assets/icons/stETH.png",
alt: "stETH logo",
symbol: "stETH",
address: "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
coinGeckoId: "staked-ether",
},
{
src: "/assets/icons/comp.png",
alt: "COMP logo",
symbol: "COMP",
address: "0xc00e94cb662c3520282e6f5717214004a7f26888",
coinGeckoId: "compound-governance-token",
},
{
src: "/assets/icons/crv.png",
alt: "CRV logo",
symbol: "CRV",
address: "0xd533a949740bb3306d119cc777fa900ba034cd52",
coinGeckoId: "curve-dao-token",
},
{
src: "/assets/icons/ldo.png",
alt: "LDO logo",
symbol: "LDO",
address: "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
coinGeckoId: "lido-dao",
},
{
src: "/assets/icons/mkr.png",
alt: "MKR logo",
symbol: "MKR",
address: "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
coinGeckoId: "maker",
},
{
src: "/assets/icons/aave.png",
alt: "AAVE logo",
symbol: "AAVE",
address: "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
coinGeckoId: "aave",
},
{
src: "/assets/icons/chainlink.png",
alt: "LINK logo",
symbol: "LINK",
address: "0x514910771af9ca656af840dff83e8264ecf986ca",
coinGeckoId: "chainlink",
},
{
src: "/assets/icons/one-inch.png",
alt: "1Inch logo",
symbol: "1INCH",
address: "0x111111111117dc0aa78b770fa6a738034120c302",
coinGeckoId: "1inch",
},
{
src: "/assets/icons/ens.png",
alt: "Ens logo",
symbol: "ENS",
address: "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72",
coinGeckoId: "ethereum-name-service",
},
{
src: "/assets/icons/snx.png",
alt: "SNX logo",
symbol: "SNX",
address: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
coinGeckoId: "havven",
},
{
src: "/assets/icons/real-yield-eth.png",
alt: "real-yield-eth logo",
symbol: "YieldETH",
address: "0xb5b29320d2dde5ba5bafa1ebcd270052070483ec",
coinGeckoId: "y-eth",
},
]
export const depositAssetTokenList = [
"USDC",
"AMPL",
"BUSD",
"DAI",
"FRAX",
"GUSD",
"USDP",
"RAI",
"sUSD",
"TUSD",
"USDT",
]
export const depositAssetTokenConfig: Token[] = tokenConfig.filter(
(token) => depositAssetTokenList.includes(token.symbol)
)
export function getTokenConfig(tokenList: string[]) {
return tokenList.map((list) =>
tokenConfig.find((token) => token.symbol === list)
)
}