@defisaver/tokens 1.4.57 → 1.4.58
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/README.md +23 -23
- package/docs/.nojekyll +1 -0
- package/esm/assets.js +2 -14
- package/esm/index.d.ts +2 -2
- package/esm/types.d.ts +8 -8
- package/package.json +1 -1
- package/src/assets.ts +2 -23
- package/umd/index.js +250 -284
- package/yarn-error.log +0 -5325
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
#### Defined in
|
|
53
53
|
|
|
54
|
-
[types.ts:70](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
54
|
+
[types.ts:70](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L70)
|
|
55
55
|
|
|
56
56
|
___
|
|
57
57
|
|
|
@@ -65,7 +65,7 @@ ___
|
|
|
65
65
|
|
|
66
66
|
#### Defined in
|
|
67
67
|
|
|
68
|
-
[types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
68
|
+
[types.ts:6](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L6)
|
|
69
69
|
|
|
70
70
|
___
|
|
71
71
|
|
|
@@ -96,7 +96,7 @@ Chain-specific asset info type
|
|
|
96
96
|
|
|
97
97
|
#### Defined in
|
|
98
98
|
|
|
99
|
-
[types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
99
|
+
[types.ts:36](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L36)
|
|
100
100
|
|
|
101
101
|
___
|
|
102
102
|
|
|
@@ -126,7 +126,7 @@ Chain-agnostic asset info type
|
|
|
126
126
|
|
|
127
127
|
#### Defined in
|
|
128
128
|
|
|
129
|
-
[types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
129
|
+
[types.ts:17](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L17)
|
|
130
130
|
|
|
131
131
|
___
|
|
132
132
|
|
|
@@ -136,7 +136,7 @@ ___
|
|
|
136
136
|
|
|
137
137
|
#### Defined in
|
|
138
138
|
|
|
139
|
-
[types.ts:77](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
139
|
+
[types.ts:77](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L77)
|
|
140
140
|
|
|
141
141
|
___
|
|
142
142
|
|
|
@@ -164,7 +164,7 @@ Maker ilk info type
|
|
|
164
164
|
|
|
165
165
|
#### Defined in
|
|
166
166
|
|
|
167
|
-
[types.ts:56](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
167
|
+
[types.ts:56](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/types.ts#L56)
|
|
168
168
|
|
|
169
169
|
## Variables
|
|
170
170
|
|
|
@@ -174,7 +174,7 @@ Maker ilk info type
|
|
|
174
174
|
|
|
175
175
|
#### Defined in
|
|
176
176
|
|
|
177
|
-
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
177
|
+
[index.ts:27](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L27)
|
|
178
178
|
|
|
179
179
|
___
|
|
180
180
|
|
|
@@ -184,7 +184,7 @@ ___
|
|
|
184
184
|
|
|
185
185
|
#### Defined in
|
|
186
186
|
|
|
187
|
-
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
187
|
+
[aaveV2Markets.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/aaveV2Markets.ts#L3)
|
|
188
188
|
|
|
189
189
|
___
|
|
190
190
|
|
|
@@ -194,7 +194,7 @@ ___
|
|
|
194
194
|
|
|
195
195
|
#### Defined in
|
|
196
196
|
|
|
197
|
-
[assets.ts:242](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
197
|
+
[assets.ts:242](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/assets.ts#L242)
|
|
198
198
|
|
|
199
199
|
___
|
|
200
200
|
|
|
@@ -204,7 +204,7 @@ ___
|
|
|
204
204
|
|
|
205
205
|
#### Defined in
|
|
206
206
|
|
|
207
|
-
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
207
|
+
[ilks.ts:5](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/ilks.ts#L5)
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
@@ -214,7 +214,7 @@ ___
|
|
|
214
214
|
|
|
215
215
|
#### Defined in
|
|
216
216
|
|
|
217
|
-
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
217
|
+
[reflexerCollTypes.ts:3](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/reflexerCollTypes.ts#L3)
|
|
218
218
|
|
|
219
219
|
___
|
|
220
220
|
|
|
@@ -232,7 +232,7 @@ ___
|
|
|
232
232
|
|
|
233
233
|
#### Defined in
|
|
234
234
|
|
|
235
|
-
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
235
|
+
[index.ts:25](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L25)
|
|
236
236
|
|
|
237
237
|
## Functions
|
|
238
238
|
|
|
@@ -253,7 +253,7 @@ ___
|
|
|
253
253
|
|
|
254
254
|
#### Defined in
|
|
255
255
|
|
|
256
|
-
[index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
256
|
+
[index.ts:149](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L149)
|
|
257
257
|
|
|
258
258
|
___
|
|
259
259
|
|
|
@@ -274,7 +274,7 @@ ___
|
|
|
274
274
|
|
|
275
275
|
#### Defined in
|
|
276
276
|
|
|
277
|
-
[index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
277
|
+
[index.ts:170](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L170)
|
|
278
278
|
|
|
279
279
|
___
|
|
280
280
|
|
|
@@ -294,7 +294,7 @@ ___
|
|
|
294
294
|
|
|
295
295
|
#### Defined in
|
|
296
296
|
|
|
297
|
-
[index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
297
|
+
[index.ts:142](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L142)
|
|
298
298
|
|
|
299
299
|
___
|
|
300
300
|
|
|
@@ -318,7 +318,7 @@ Warning: will not throw if asset not found. Instead, will return a placeholder o
|
|
|
318
318
|
|
|
319
319
|
#### Defined in
|
|
320
320
|
|
|
321
|
-
[index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
321
|
+
[index.ts:60](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L60)
|
|
322
322
|
|
|
323
323
|
___
|
|
324
324
|
|
|
@@ -339,7 +339,7 @@ ___
|
|
|
339
339
|
|
|
340
340
|
#### Defined in
|
|
341
341
|
|
|
342
|
-
[index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
342
|
+
[index.ts:95](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L95)
|
|
343
343
|
|
|
344
344
|
___
|
|
345
345
|
|
|
@@ -362,7 +362,7 @@ Warning: will not throw if ilk not found. Instead, will return a placeholder obj
|
|
|
362
362
|
|
|
363
363
|
#### Defined in
|
|
364
364
|
|
|
365
|
-
[index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
365
|
+
[index.ts:73](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L73)
|
|
366
366
|
|
|
367
367
|
___
|
|
368
368
|
|
|
@@ -382,7 +382,7 @@ ___
|
|
|
382
382
|
|
|
383
383
|
#### Defined in
|
|
384
384
|
|
|
385
|
-
[index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
385
|
+
[index.ts:100](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L100)
|
|
386
386
|
|
|
387
387
|
___
|
|
388
388
|
|
|
@@ -403,7 +403,7 @@ ___
|
|
|
403
403
|
|
|
404
404
|
#### Defined in
|
|
405
405
|
|
|
406
|
-
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
406
|
+
[index.ts:21](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L21)
|
|
407
407
|
|
|
408
408
|
___
|
|
409
409
|
|
|
@@ -426,7 +426,7 @@ Token symbol
|
|
|
426
426
|
|
|
427
427
|
#### Defined in
|
|
428
428
|
|
|
429
|
-
[index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
429
|
+
[index.ts:122](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L122)
|
|
430
430
|
|
|
431
431
|
___
|
|
432
432
|
|
|
@@ -448,7 +448,7 @@ Token symbol
|
|
|
448
448
|
|
|
449
449
|
#### Defined in
|
|
450
450
|
|
|
451
|
-
[index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
451
|
+
[index.ts:134](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L134)
|
|
452
452
|
|
|
453
453
|
___
|
|
454
454
|
|
|
@@ -470,4 +470,4 @@ Token symbol
|
|
|
470
470
|
|
|
471
471
|
#### Defined in
|
|
472
472
|
|
|
473
|
-
[index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/
|
|
473
|
+
[index.ts:140](https://github.com/DecenterApps/defisaver-tokens/blob/772884a/src/index.ts#L140)
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/esm/assets.js
CHANGED
|
@@ -223,7 +223,7 @@ export const assetProto = {
|
|
|
223
223
|
name: 'Unknown',
|
|
224
224
|
nativeChainId: 1,
|
|
225
225
|
addresses: {},
|
|
226
|
-
decimals:
|
|
226
|
+
decimals: NaN,
|
|
227
227
|
icon: () => {
|
|
228
228
|
console.warn('Token icon function not present');
|
|
229
229
|
return '';
|
|
@@ -239,13 +239,11 @@ export const assets = [
|
|
|
239
239
|
Object.assign(Object.assign({}, assetProto), { symbol: 'ETH', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'Ether', decimals: 18, exchange: true, compoundCollateral: false, addresses: {
|
|
240
240
|
1: ETHAddress,
|
|
241
241
|
10: ETHAddress,
|
|
242
|
-
8453: ETHAddress,
|
|
243
242
|
42161: ETHAddress,
|
|
244
243
|
} }),
|
|
245
244
|
Object.assign(Object.assign({}, assetProto), { symbol: 'WETH', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'Wrapped Ether', decimals: 18, addresses: {
|
|
246
245
|
1: WETHAddress,
|
|
247
246
|
10: '0x4200000000000000000000000000000000000006',
|
|
248
|
-
8453: '0x4200000000000000000000000000000000000006',
|
|
249
247
|
42161: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
250
248
|
}, yearnCollateral: true }),
|
|
251
249
|
Object.assign(Object.assign({}, assetProto), { symbol: 'cETH', underlyingAsset: 'ETH', name: 'Ether', decimals: 8, exchange: false, compoundCollateral: true, addresses: {
|
|
@@ -254,7 +252,6 @@ export const assets = [
|
|
|
254
252
|
Object.assign(Object.assign({}, assetProto), { symbol: 'DAI', feedAvailability: { 1: true, 10: true, 42161: true }, name: 'Dai', decimals: 18, exchange: true, compoundCollateral: false, yearnCollateral: true, addresses: {
|
|
255
253
|
1: DAIAddress,
|
|
256
254
|
10: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
257
|
-
8453: '0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
|
|
258
255
|
42161: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
259
256
|
}, isStable: true }),
|
|
260
257
|
Object.assign(Object.assign({}, assetProto), { symbol: 'cDAI', underlyingAsset: 'DAI', name: 'Dai', decimals: 8, exchange: false, compoundCollateral: true, addresses: {
|
|
@@ -297,16 +294,12 @@ export const assets = [
|
|
|
297
294
|
Object.assign(Object.assign({}, assetProto), { symbol: 'USDC', feedAvailability: { 1: true, 42161: true }, name: 'USD Coin', decimals: 6, exchange: true, compoundCollateral: false, yearnCollateral: true, addresses: {
|
|
298
295
|
1: USDCAddress,
|
|
299
296
|
10: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
|
|
300
|
-
8453: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
301
297
|
42161: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
302
298
|
}, isStable: true }),
|
|
303
|
-
Object.assign(Object.assign({}, assetProto), { symbol: 'USDC.e', feedAvailability: { 42161: true }, name: 'USD Coin (Legacy Bridged)', decimals: 6, nativeChainId: 42161, exchange: true, addresses: {
|
|
299
|
+
Object.assign(Object.assign({}, assetProto), { symbol: 'USDC.e', feedAvailability: { 10: true, 42161: true }, name: 'USD Coin (Legacy Bridged)', decimals: 6, nativeChainId: 42161, exchange: true, addresses: {
|
|
304
300
|
10: '0x7f5c764cbc14f9669b88837ca1490cca17c31607',
|
|
305
301
|
42161: '0xff970a61a04b1ca14834a43f5de4533ebddb5cc8',
|
|
306
302
|
}, isStable: true }),
|
|
307
|
-
Object.assign(Object.assign({}, assetProto), { symbol: 'USDbC', name: 'USD Base Coin', decimals: 6, nativeChainId: 8453, exchange: true, addresses: {
|
|
308
|
-
8453: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
|
|
309
|
-
}, isStable: true }),
|
|
310
303
|
Object.assign(Object.assign({}, assetProto), { symbol: 'cUSDC', underlyingAsset: 'USDC', name: 'USD Coin', decimals: 8, exchange: false, compoundCollateral: true, addresses: {
|
|
311
304
|
1: cUSDCAddress,
|
|
312
305
|
} }),
|
|
@@ -334,7 +327,6 @@ export const assets = [
|
|
|
334
327
|
} }),
|
|
335
328
|
Object.assign(Object.assign({}, assetProto), { symbol: 'COMP', feedAvailability: { 1: true }, name: 'Compound Token', decimals: 18, addresses: {
|
|
336
329
|
1: COMPAddress,
|
|
337
|
-
8453: '0x9e1028F5F1D5eDE59748FFceE5532509976840E0',
|
|
338
330
|
}, exchange: true }),
|
|
339
331
|
Object.assign(Object.assign({}, assetProto), { symbol: 'aETH', underlyingAsset: 'ETH', name: 'ETH', decimals: 18, aaveCollateral: true, addresses: {
|
|
340
332
|
1: aETHAddress,
|
|
@@ -433,7 +425,6 @@ export const assets = [
|
|
|
433
425
|
Object.assign(Object.assign({}, assetProto), { symbol: 'CRV', feedAvailability: { 1: true, 10: true }, name: 'Curve DAO', decimals: 18, exchange: true, addresses: {
|
|
434
426
|
1: CRVAddress,
|
|
435
427
|
10: '0x0994206dfe8de6ec6920ff4d779b0d950605fb53',
|
|
436
|
-
8453: '0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415',
|
|
437
428
|
} }),
|
|
438
429
|
Object.assign(Object.assign({}, assetProto), { symbol: 'YFI', feedAvailability: { 1: true }, name: 'Yearn Finance', decimals: 18, exchange: true, yearnCollateral: true, addresses: {
|
|
439
430
|
1: YFIAddress,
|
|
@@ -482,7 +473,6 @@ export const assets = [
|
|
|
482
473
|
} }),
|
|
483
474
|
Object.assign(Object.assign({}, assetProto), { symbol: 'BAL', feedAvailability: { 1: true }, name: 'Balancer', addresses: {
|
|
484
475
|
1: BALAddress,
|
|
485
|
-
8453: '0x4158734D47Fc9692176B5085E0F52ee0Da5d47F1',
|
|
486
476
|
}, exchange: true, decimals: 18 }),
|
|
487
477
|
Object.assign(Object.assign({}, assetProto), { symbol: 'GUSD', feedAvailability: { 1: true }, name: 'Gemini Dollar', addresses: {
|
|
488
478
|
1: GUSDAddress,
|
|
@@ -523,7 +513,6 @@ export const assets = [
|
|
|
523
513
|
}, decimals: 18, yearnCollateral: true, exchange: true }),
|
|
524
514
|
Object.assign(Object.assign({}, assetProto), { symbol: '1INCH', feedAvailability: { 1: true }, name: '1INCH Token', addresses: {
|
|
525
515
|
1: ONEINCHAddress,
|
|
526
|
-
8453: '0xc5fecC3a29Fb57B5024eEc8a2239d4621e111CBE',
|
|
527
516
|
}, yearnCollateral: true, exchange: true, decimals: 18 }),
|
|
528
517
|
Object.assign(Object.assign({}, assetProto), { symbol: 'BADGER', feedAvailability: { 1: true }, name: 'BadgerDAO', addresses: {
|
|
529
518
|
1: BadgerAddress,
|
|
@@ -935,7 +924,6 @@ export const assets = [
|
|
|
935
924
|
}, exchange: true, decimals: 18 }),
|
|
936
925
|
Object.assign(Object.assign({}, assetProto), { symbol: 'cbETH', feedAvailability: { 1: true }, name: 'Coinbase Wrapped Staked ETH', addresses: {
|
|
937
926
|
1: cbETHAddress,
|
|
938
|
-
8453: '0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22',
|
|
939
927
|
}, exchange: true, decimals: 18 }),
|
|
940
928
|
Object.assign(Object.assign({}, assetProto), { symbol: 'MORPHO', name: 'Morpho Token', addresses: {
|
|
941
929
|
1: MORPHOAddress,
|
package/esm/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const MAXUINT: string;
|
|
|
24
24
|
* @param chainId {number}
|
|
25
25
|
* @return {AssetData}
|
|
26
26
|
*/
|
|
27
|
-
export declare const getAssetInfo: (symbol?: string, chainId?: number
|
|
27
|
+
export declare const getAssetInfo: (symbol?: string, chainId?: number) => AssetData;
|
|
28
28
|
/**
|
|
29
29
|
* Returns Maker or Reflexer ilk info, and asset info as `assetData` attribute.
|
|
30
30
|
* Warning: will not throw if ilk not found. Instead, will return a placeholder object.
|
|
@@ -33,7 +33,7 @@ export declare const getAssetInfo: (symbol?: string, chainId?: number | undefine
|
|
|
33
33
|
* @returns {ExtendedIlkData}
|
|
34
34
|
*/
|
|
35
35
|
export declare const getIlkInfo: (ilk?: string) => ExtendedIlkData;
|
|
36
|
-
export declare const getAssetInfoByAddress: (address?: string, chainId?: number
|
|
36
|
+
export declare const getAssetInfoByAddress: (address?: string, chainId?: number) => AssetData;
|
|
37
37
|
export declare const ilkToAsset: (ilk?: string) => string;
|
|
38
38
|
/** @private **/
|
|
39
39
|
export declare const compoundAsset: (underlyingAsset: string) => string;
|
package/esm/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
type Config = {
|
|
2
2
|
network: number;
|
|
3
3
|
iconFunc: ((props: object) => () => string) | undefined;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type AddressMapping = {
|
|
6
6
|
[key: number]: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type BoolMapping = {
|
|
9
9
|
[key: number]: boolean;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Chain-agnostic asset info type
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
type AssetDataBase = {
|
|
15
15
|
symbol: string;
|
|
16
16
|
name: string;
|
|
17
17
|
addresses: AddressMapping;
|
|
@@ -29,7 +29,7 @@ declare type AssetDataBase = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Chain-specific asset info type
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
type AssetData = {
|
|
33
33
|
symbol: string;
|
|
34
34
|
name: string;
|
|
35
35
|
address: string;
|
|
@@ -48,7 +48,7 @@ declare type AssetData = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Maker ilk info type
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
type IlkData = {
|
|
52
52
|
ilkLabel: (string);
|
|
53
53
|
pip: (string);
|
|
54
54
|
join: (string);
|
|
@@ -61,13 +61,13 @@ declare type IlkData = {
|
|
|
61
61
|
isCrop: (boolean);
|
|
62
62
|
assetAddress?: (string);
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
type AaveMarketData = {
|
|
65
65
|
name: (string);
|
|
66
66
|
lendingPool: (string);
|
|
67
67
|
lendingPoolAddressProvider: (string);
|
|
68
68
|
dataProvider: (string);
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
type ExtendedIlkData = IlkData | {
|
|
71
71
|
assetData: AssetData;
|
|
72
72
|
};
|
|
73
73
|
export { AddressMapping, AssetDataBase, AssetData, IlkData, ExtendedIlkData, AaveMarketData, Config, };
|
package/package.json
CHANGED
package/src/assets.ts
CHANGED
|
@@ -226,7 +226,7 @@ export const assetProto: AssetDataBase = {
|
|
|
226
226
|
name: 'Unknown',
|
|
227
227
|
nativeChainId: 1,
|
|
228
228
|
addresses: {},
|
|
229
|
-
decimals:
|
|
229
|
+
decimals: NaN,
|
|
230
230
|
icon: () => {
|
|
231
231
|
console.warn('Token icon function not present');
|
|
232
232
|
return '';
|
|
@@ -251,7 +251,6 @@ export const assets: AssetDataBase[] = [
|
|
|
251
251
|
addresses: {
|
|
252
252
|
1: ETHAddress,
|
|
253
253
|
10: ETHAddress,
|
|
254
|
-
8453: ETHAddress,
|
|
255
254
|
42161: ETHAddress,
|
|
256
255
|
},
|
|
257
256
|
},
|
|
@@ -264,7 +263,6 @@ export const assets: AssetDataBase[] = [
|
|
|
264
263
|
addresses: {
|
|
265
264
|
1: WETHAddress,
|
|
266
265
|
10: '0x4200000000000000000000000000000000000006',
|
|
267
|
-
8453: '0x4200000000000000000000000000000000000006',
|
|
268
266
|
42161: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
269
267
|
},
|
|
270
268
|
yearnCollateral: true,
|
|
@@ -293,7 +291,6 @@ export const assets: AssetDataBase[] = [
|
|
|
293
291
|
addresses: {
|
|
294
292
|
1: DAIAddress,
|
|
295
293
|
10: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
296
|
-
8453: '0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb',
|
|
297
294
|
42161: '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
|
|
298
295
|
},
|
|
299
296
|
isStable: true,
|
|
@@ -451,7 +448,6 @@ export const assets: AssetDataBase[] = [
|
|
|
451
448
|
addresses: {
|
|
452
449
|
1: USDCAddress,
|
|
453
450
|
10: '0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85',
|
|
454
|
-
8453: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
455
451
|
42161: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
456
452
|
},
|
|
457
453
|
isStable: true,
|
|
@@ -459,7 +455,7 @@ export const assets: AssetDataBase[] = [
|
|
|
459
455
|
{
|
|
460
456
|
...assetProto,
|
|
461
457
|
symbol: 'USDC.e',
|
|
462
|
-
feedAvailability: { 42161: true },
|
|
458
|
+
feedAvailability: { 10: true, 42161: true },
|
|
463
459
|
name: 'USD Coin (Legacy Bridged)',
|
|
464
460
|
decimals: 6,
|
|
465
461
|
nativeChainId: 42161,
|
|
@@ -470,18 +466,6 @@ export const assets: AssetDataBase[] = [
|
|
|
470
466
|
},
|
|
471
467
|
isStable: true,
|
|
472
468
|
},
|
|
473
|
-
{
|
|
474
|
-
...assetProto,
|
|
475
|
-
symbol: 'USDbC',
|
|
476
|
-
name: 'USD Base Coin',
|
|
477
|
-
decimals: 6,
|
|
478
|
-
nativeChainId: 8453,
|
|
479
|
-
exchange: true,
|
|
480
|
-
addresses: {
|
|
481
|
-
8453: '0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA',
|
|
482
|
-
},
|
|
483
|
-
isStable: true,
|
|
484
|
-
},
|
|
485
469
|
{
|
|
486
470
|
...assetProto,
|
|
487
471
|
symbol: 'cUSDC',
|
|
@@ -576,7 +560,6 @@ export const assets: AssetDataBase[] = [
|
|
|
576
560
|
decimals: 18,
|
|
577
561
|
addresses: {
|
|
578
562
|
1: COMPAddress,
|
|
579
|
-
8453: '0x9e1028F5F1D5eDE59748FFceE5532509976840E0',
|
|
580
563
|
},
|
|
581
564
|
exchange: true,
|
|
582
565
|
},
|
|
@@ -930,7 +913,6 @@ export const assets: AssetDataBase[] = [
|
|
|
930
913
|
addresses: {
|
|
931
914
|
1: CRVAddress,
|
|
932
915
|
10: '0x0994206dfe8de6ec6920ff4d779b0d950605fb53',
|
|
933
|
-
8453: '0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415',
|
|
934
916
|
},
|
|
935
917
|
},
|
|
936
918
|
{
|
|
@@ -1088,7 +1070,6 @@ export const assets: AssetDataBase[] = [
|
|
|
1088
1070
|
name: 'Balancer',
|
|
1089
1071
|
addresses: {
|
|
1090
1072
|
1: BALAddress,
|
|
1091
|
-
8453: '0x4158734D47Fc9692176B5085E0F52ee0Da5d47F1',
|
|
1092
1073
|
},
|
|
1093
1074
|
exchange: true,
|
|
1094
1075
|
decimals: 18,
|
|
@@ -1224,7 +1205,6 @@ export const assets: AssetDataBase[] = [
|
|
|
1224
1205
|
name: '1INCH Token',
|
|
1225
1206
|
addresses: {
|
|
1226
1207
|
1: ONEINCHAddress,
|
|
1227
|
-
8453: '0xc5fecC3a29Fb57B5024eEc8a2239d4621e111CBE',
|
|
1228
1208
|
},
|
|
1229
1209
|
yearnCollateral: true,
|
|
1230
1210
|
exchange: true,
|
|
@@ -2598,7 +2578,6 @@ export const assets: AssetDataBase[] = [
|
|
|
2598
2578
|
name: 'Coinbase Wrapped Staked ETH',
|
|
2599
2579
|
addresses: {
|
|
2600
2580
|
1: cbETHAddress,
|
|
2601
|
-
8453: '0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22',
|
|
2602
2581
|
},
|
|
2603
2582
|
exchange: true,
|
|
2604
2583
|
decimals: 18,
|