@gearbox-protocol/sdk 0.0.3 → 0.0.6

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.
@@ -17,6 +17,7 @@ export declare class CreditManagerData {
17
17
  constructor(payload: CreditManagerDataPayload);
18
18
  validateOpenAccount(balance: BigNumber, decimals: number, amount_BN: BigNumber, leverage: number): string | null;
19
19
  getContractETH(signer: Signer | ethers.providers.Provider): IAppCreditManager;
20
+ get isPaused(): boolean;
20
21
  }
21
22
  export declare function calcMaxIncreaseBorrow(healthFactor: number, borrowAmountPlusInterest: BigNumber, maxLeverageFactor: number): BigNumber;
22
23
  export declare function calcHealthFactorAfterIncreasingBorrow(healthFactor: number | undefined, borrowAmountPlusInterest: BigNumber | undefined, additional: BigNumber): number;
@@ -61,6 +61,13 @@ var CreditManagerData = /** @class */ (function () {
61
61
  CreditManagerData.prototype.getContractETH = function (signer) {
62
62
  return types_1.IAppCreditManager__factory.connect(this.address, signer);
63
63
  };
64
+ Object.defineProperty(CreditManagerData.prototype, "isPaused", {
65
+ get: function () {
66
+ return false;
67
+ },
68
+ enumerable: false,
69
+ configurable: true
70
+ });
64
71
  return CreditManagerData;
65
72
  }());
66
73
  exports.CreditManagerData = CreditManagerData;
@@ -21,6 +21,7 @@ export declare class PoolData {
21
21
  readonly cumulativeIndex_RAY: BigNumber;
22
22
  constructor(payload: PoolDataPayload);
23
23
  getContractETH(signer: Signer): IAppPoolService;
24
+ get isPaused(): boolean;
24
25
  }
25
26
  export interface PoolsStat {
26
27
  tvl: number;
package/lib/core/pool.js CHANGED
@@ -27,6 +27,13 @@ var PoolData = /** @class */ (function () {
27
27
  PoolData.prototype.getContractETH = function (signer) {
28
28
  return types_1.IPoolService__factory.connect(this.address, signer);
29
29
  };
30
+ Object.defineProperty(PoolData.prototype, "isPaused", {
31
+ get: function () {
32
+ return false;
33
+ },
34
+ enumerable: false,
35
+ configurable: true
36
+ });
30
37
  return PoolData;
31
38
  }());
32
39
  exports.PoolData = PoolData;
@@ -1,3 +1,140 @@
1
1
  import { NetworkType } from "./constants";
2
- import { TokenSavedData } from "./tokenData";
3
- export declare const tokenDataByNetwork: Record<NetworkType, Record<string, TokenSavedData>>;
2
+ export declare const supportedTokens: {
3
+ "1INCH": {
4
+ type: string;
5
+ };
6
+ AAVE: {
7
+ type: string;
8
+ };
9
+ COMP: {
10
+ type: string;
11
+ };
12
+ CRV: {
13
+ type: string;
14
+ };
15
+ DAI: {
16
+ type: string;
17
+ };
18
+ DPI: {
19
+ type: string;
20
+ };
21
+ FEI: {
22
+ type: string;
23
+ };
24
+ LINK: {
25
+ type: string;
26
+ };
27
+ SNX: {
28
+ type: string;
29
+ };
30
+ SUSHI: {
31
+ type: string;
32
+ };
33
+ UNI: {
34
+ type: string;
35
+ };
36
+ USDC: {
37
+ type: string;
38
+ };
39
+ USDT: {
40
+ type: string;
41
+ };
42
+ WBTC: {
43
+ type: string;
44
+ };
45
+ WETH: {
46
+ type: string;
47
+ };
48
+ YFI: {
49
+ type: string;
50
+ };
51
+ STETH: {
52
+ type: string;
53
+ };
54
+ FTM: {
55
+ type: string;
56
+ };
57
+ CVX: {
58
+ type: string;
59
+ };
60
+ FRAX: {
61
+ type: string;
62
+ };
63
+ FXS: {
64
+ type: string;
65
+ };
66
+ LDO: {
67
+ type: string;
68
+ };
69
+ SPELL: {
70
+ type: string;
71
+ };
72
+ LUSD: {
73
+ type: string;
74
+ };
75
+ SUSD: {
76
+ type: string;
77
+ };
78
+ GUSD: {
79
+ type: string;
80
+ };
81
+ LUNA: {
82
+ type: string;
83
+ };
84
+ yvDAI: {
85
+ type: string;
86
+ };
87
+ yvUSDC: {
88
+ type: string;
89
+ };
90
+ yvWETH: {
91
+ type: string;
92
+ };
93
+ yvWBTC: {
94
+ type: string;
95
+ };
96
+ "3Crv": {
97
+ type: string;
98
+ };
99
+ steCRV: {
100
+ type: string;
101
+ };
102
+ FRAX3CRV: {
103
+ type: string;
104
+ };
105
+ LUSD3CRV: {
106
+ type: string;
107
+ };
108
+ crvPlain3andSUSD: {
109
+ type: string;
110
+ };
111
+ gusd3CRV: {
112
+ type: string;
113
+ };
114
+ cvx3Crv: {
115
+ type: string;
116
+ };
117
+ cvxsteCRV: {
118
+ type: string;
119
+ };
120
+ cvxFRAX3CRV: {
121
+ type: string;
122
+ };
123
+ cvxcrvPlain3andSUSD: {
124
+ type: string;
125
+ };
126
+ cvxgusd3CRV: {
127
+ type: string;
128
+ };
129
+ yvCurve_stETH: {
130
+ type: string;
131
+ };
132
+ yvCurve_FRAX: {
133
+ type: string;
134
+ };
135
+ yvCurve_d3pool: {
136
+ type: string;
137
+ };
138
+ };
139
+ export declare type SupportedTokens = keyof typeof supportedTokens;
140
+ export declare const tokenDataByNetwork: Record<NetworkType, Record<SupportedTokens, string>>;
package/lib/core/token.js CHANGED
@@ -1,6 +1,148 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tokenDataByNetwork = void 0;
3
+ exports.tokenDataByNetwork = exports.supportedTokens = void 0;
4
+ exports.supportedTokens = {
5
+ "1INCH": {
6
+ type: "volatile"
7
+ },
8
+ AAVE: {
9
+ type: "volatile"
10
+ },
11
+ COMP: {
12
+ type: "volatile"
13
+ },
14
+ CRV: {
15
+ type: "volatile"
16
+ },
17
+ DAI: {
18
+ type: "stable"
19
+ },
20
+ DPI: {
21
+ type: "volatile"
22
+ },
23
+ FEI: {
24
+ type: "stable"
25
+ },
26
+ LINK: {
27
+ type: "volatile"
28
+ },
29
+ SNX: {
30
+ type: "volatile"
31
+ },
32
+ SUSHI: {
33
+ type: "volatile"
34
+ },
35
+ UNI: {
36
+ type: "volatile"
37
+ },
38
+ USDC: {
39
+ type: "stable"
40
+ },
41
+ USDT: {
42
+ type: "stable"
43
+ },
44
+ WBTC: {
45
+ type: "core"
46
+ },
47
+ WETH: {
48
+ type: "core"
49
+ },
50
+ YFI: {
51
+ type: "volatile"
52
+ },
53
+ /// UPDATE
54
+ STETH: {
55
+ type: "volatile"
56
+ },
57
+ FTM: {
58
+ type: "volatile"
59
+ },
60
+ CVX: {
61
+ type: "volatile"
62
+ },
63
+ FRAX: {
64
+ type: "stable"
65
+ },
66
+ FXS: {
67
+ type: "volatile"
68
+ },
69
+ LDO: {
70
+ type: "volatile"
71
+ },
72
+ SPELL: {
73
+ type: "volatile"
74
+ },
75
+ LUSD: {
76
+ type: "stable"
77
+ },
78
+ SUSD: {
79
+ type: "stable"
80
+ },
81
+ GUSD: {
82
+ type: "stable"
83
+ },
84
+ LUNA: {
85
+ type: "volatile"
86
+ },
87
+ // YEARN TOKENS
88
+ yvDAI: {
89
+ type: "lp"
90
+ },
91
+ yvUSDC: {
92
+ type: "lp"
93
+ },
94
+ yvWETH: {
95
+ type: "lp"
96
+ },
97
+ yvWBTC: {
98
+ type: "lp"
99
+ },
100
+ // CURVE LP TOKENS
101
+ "3Crv": {
102
+ type: "lp"
103
+ },
104
+ steCRV: {
105
+ type: "lp"
106
+ },
107
+ FRAX3CRV: {
108
+ type: "lp"
109
+ },
110
+ LUSD3CRV: {
111
+ type: "lp"
112
+ },
113
+ crvPlain3andSUSD: {
114
+ type: "lp"
115
+ },
116
+ gusd3CRV: {
117
+ type: "lp"
118
+ },
119
+ // CONVEX LP TOKENS
120
+ cvx3Crv: {
121
+ type: "lp"
122
+ },
123
+ cvxsteCRV: {
124
+ type: "lp"
125
+ },
126
+ cvxFRAX3CRV: {
127
+ type: "lp"
128
+ },
129
+ cvxcrvPlain3andSUSD: {
130
+ type: "lp"
131
+ },
132
+ cvxgusd3CRV: {
133
+ type: "lp"
134
+ },
135
+ // YEARN- CURVE TOKENS
136
+ yvCurve_stETH: {
137
+ type: "lp"
138
+ },
139
+ yvCurve_FRAX: {
140
+ type: "lp"
141
+ },
142
+ yvCurve_d3pool: {
143
+ type: "lp"
144
+ }
145
+ };
4
146
  exports.tokenDataByNetwork = {
5
147
  //
6
148
  // MAINNET NETWORK
@@ -8,222 +150,111 @@ exports.tokenDataByNetwork = {
8
150
  // DAI DPI GRT LINK SNX SRM SUSHI UNI USDC
9
151
  // USDT YFI ZRX
10
152
  Mainnet: {
11
- "1INCH": {
12
- address: "0x111111111117dc0aa78b770fa6a738034120c302",
13
- type: "volatile"
14
- },
15
- AAVE: {
16
- address: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",
17
- type: "volatile"
18
- },
19
- COMP: {
20
- address: "0xc00e94cb662c3520282e6f5717214004a7f26888",
21
- type: "volatile"
22
- },
23
- CRV: {
24
- address: "0xD533a949740bb3306d119CC777fa900bA034cd52",
25
- type: "volatile"
26
- },
27
- DAI: {
28
- address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
29
- type: "stable"
30
- },
31
- DPI: {
32
- address: "0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b",
33
- type: "volatile"
34
- },
35
- FEI: {
36
- address: "0x956F47F50A910163D8BF957Cf5846D573E7f87CA",
37
- type: "stable"
38
- },
39
- LINK: {
40
- address: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
41
- type: "volatile"
42
- },
43
- SNX: {
44
- address: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
45
- type: "volatile"
46
- },
47
- SUSHI: {
48
- address: "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",
49
- type: "volatile"
50
- },
51
- UNI: {
52
- address: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
53
- type: "volatile"
54
- },
55
- USDC: {
56
- address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
57
- type: "stable"
58
- },
59
- USDT: {
60
- address: "0xdac17f958d2ee523a2206206994597c13d831ec7",
61
- type: "stable"
62
- },
63
- WBTC: {
64
- address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
65
- type: "core"
66
- },
67
- WETH: {
68
- address: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
69
- type: "core"
70
- },
71
- YFI: {
72
- address: "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e",
73
- type: "volatile"
74
- },
153
+ "1INCH": "0x111111111117dc0aa78b770fa6a738034120c302",
154
+ AAVE: "0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",
155
+ COMP: "0xc00e94cb662c3520282e6f5717214004a7f26888",
156
+ CRV: "0xD533a949740bb3306d119CC777fa900bA034cd52",
157
+ DAI: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
158
+ DPI: "0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b",
159
+ FEI: "0x956F47F50A910163D8BF957Cf5846D573E7f87CA",
160
+ LINK: "0x514910771AF9Ca656af840dff83E8264EcF986CA",
161
+ SNX: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
162
+ SUSHI: "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",
163
+ UNI: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
164
+ USDC: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
165
+ USDT: "0xdac17f958d2ee523a2206206994597c13d831ec7",
166
+ WBTC: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
167
+ WETH: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
168
+ YFI: "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e",
75
169
  /// UPDATE
76
- STETH: {
77
- address: "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
78
- type: "volatile"
79
- },
80
- FTM: {
81
- address: "0x4E15361FD6b4BB609Fa63C81A2be19d873717870",
82
- type: "volatile"
83
- },
84
- CVX: {
85
- address: "0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b",
86
- type: "volatile"
87
- },
88
- FRAX: {
89
- address: "0x853d955acef822db058eb8505911ed77f175b99e",
90
- type: "stable"
91
- },
92
- FXS: {
93
- address: "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0",
94
- type: "volatile"
95
- },
96
- LDO: {
97
- address: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",
98
- type: "volatile"
99
- },
100
- SPELL: {
101
- address: "0x090185f2135308BaD17527004364eBcC2D37e5F6",
102
- type: "volatile"
103
- },
104
- LUSD: {
105
- address: "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
106
- type: "stable"
107
- },
108
- SUSD: {
109
- address: "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51",
110
- type: "stable"
111
- },
112
- GUSD: {
113
- address: "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
114
- type: "stable"
115
- },
170
+ STETH: "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
171
+ FTM: "0x4E15361FD6b4BB609Fa63C81A2be19d873717870",
172
+ CVX: "0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b",
173
+ FRAX: "0x853d955acef822db058eb8505911ed77f175b99e",
174
+ FXS: "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0",
175
+ LDO: "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",
176
+ SPELL: "0x090185f2135308BaD17527004364eBcC2D37e5F6",
177
+ LUSD: "0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
178
+ SUSD: "0x57Ab1ec28D129707052df4dF418D58a2D46d5f51",
179
+ GUSD: "0x056fd409e1d7a124bd7017459dfea2f387b6d5cd",
180
+ LUNA: "0xd2877702675e6ceb975b4a1dff9fb7baf4c91ea9",
116
181
  // YEARN TOKENS
117
- yvDAI: {
118
- address: "0xdA816459F1AB5631232FE5e97a05BBBb94970c95",
119
- type: "lp"
120
- },
121
- yvUSDC: {
122
- address: "0xa354f35829ae975e850e23e9615b11da1b3dc4de",
123
- type: "lp"
124
- },
125
- yvWETH: {
126
- address: "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
127
- type: "lp"
128
- },
129
- yvWBTC: {
130
- address: "0xA696a63cc78DfFa1a63E9E50587C197387FF6C7E",
131
- type: "lp"
132
- },
182
+ yvDAI: "0xdA816459F1AB5631232FE5e97a05BBBb94970c95",
183
+ yvUSDC: "0xa354f35829ae975e850e23e9615b11da1b3dc4de",
184
+ yvWETH: "0xa258C4606Ca8206D8aA700cE2143D7db854D168c",
185
+ yvWBTC: "0xA696a63cc78DfFa1a63E9E50587C197387FF6C7E",
133
186
  // CURVE LP TOKENS
134
- "3Crv": {
135
- address: "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
136
- type: "lp"
137
- },
138
- steCRV: {
139
- address: "0x06325440d014e39736583c165c2963ba99faf14e",
140
- type: "lp"
141
- },
142
- FRAX3CRV: {
143
- address: "0xd632f22692fac7611d2aa1c0d552930d43caed3b",
144
- type: "lp"
145
- },
146
- LUSD3CRV: {
147
- address: "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
148
- type: "lp"
149
- },
150
- crvPlain3andSUSD: {
151
- address: "0xC25a3A3b969415c80451098fa907EC722572917F",
152
- type: "lp"
153
- },
154
- gusd3CRV: {
155
- address: "0xD2967f45c4f384DEEa880F807Be904762a3DeA07",
156
- type: "lp"
157
- },
187
+ "3Crv": "0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490",
188
+ steCRV: "0x06325440d014e39736583c165c2963ba99faf14e",
189
+ FRAX3CRV: "0xd632f22692fac7611d2aa1c0d552930d43caed3b",
190
+ LUSD3CRV: "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
191
+ crvPlain3andSUSD: "0xC25a3A3b969415c80451098fa907EC722572917F",
192
+ gusd3CRV: "0xD2967f45c4f384DEEa880F807Be904762a3DeA07",
158
193
  // CONVEX LP TOKENS
159
- cvx3Crv: {
160
- address: "0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C",
161
- type: "lp"
162
- },
163
- cvxsteCRV: {
164
- address: "0x9518c9063eB0262D791f38d8d6Eb0aca33c63ed0",
165
- type: "lp"
166
- },
167
- cvxFRAX3CRV: {
168
- address: "0xbE0F6478E0E4894CFb14f32855603A083A57c7dA",
169
- type: "lp"
170
- },
171
- cvxcrvPlain3andSUSD: {
172
- address: "0x11D200ef1409cecA8D6d23e6496550f707772F11",
173
- type: "lp"
174
- },
175
- cvxgusd3CRV: {
176
- address: "0x15c2471ef46Fa721990730cfa526BcFb45574576",
177
- type: "lp"
178
- },
194
+ cvx3Crv: "0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C",
195
+ cvxsteCRV: "0x9518c9063eB0262D791f38d8d6Eb0aca33c63ed0",
196
+ cvxFRAX3CRV: "0xbE0F6478E0E4894CFb14f32855603A083A57c7dA",
197
+ cvxcrvPlain3andSUSD: "0x11D200ef1409cecA8D6d23e6496550f707772F11",
198
+ cvxgusd3CRV: "0x15c2471ef46Fa721990730cfa526BcFb45574576",
179
199
  // YEARN- CURVE TOKENS
180
- yvCurve_stETH: {
181
- address: "0xdCD90C7f6324cfa40d7169ef80b12031770B4325",
182
- type: "lp"
183
- },
184
- yvCurve_FRAX: {
185
- address: "0xB4AdA607B9d6b2c9Ee07A275e9616B84AC560139",
186
- type: "lp"
187
- },
188
- yvCurve_d3pool: {
189
- address: "0x16825039dfe2a5b01F3E1E6a2BBF9a576c6F95c4",
190
- type: "lp"
191
- }
200
+ yvCurve_stETH: "0xdCD90C7f6324cfa40d7169ef80b12031770B4325",
201
+ yvCurve_FRAX: "0xB4AdA607B9d6b2c9Ee07A275e9616B84AC560139",
202
+ yvCurve_d3pool: "0x16825039dfe2a5b01F3E1E6a2BBF9a576c6F95c4"
192
203
  },
193
204
  //
194
205
  // KOVAN NETWORK
195
206
  // DAI LINK REP SNX USDC WBTC ZRX
196
207
  //
197
208
  Kovan: {
198
- DAI: {
199
- address: "0x9DC7B33C3B63fc00ed5472fBD7813eDDa6a64752",
200
- type: "stable"
201
- },
202
- LINK: {
203
- address: "0x6C994935826574E870549F09efF43BA8089A3D25",
204
- type: "volatile"
205
- },
206
- // REP: {
207
- // address: "0x633317172c0D41451F62025D73CE59065A370a50",
208
- // priceFeedETH: "0x3A7e6117F2979EFf81855de32819FBba48a63e9e",
209
- // type: "volatile",
210
- // },
211
- SNX: {
212
- address: "0xB48891df9267EF65AABd32F497F6F2d1eB22A186",
213
- type: "volatile"
214
- },
215
- USDC: {
216
- address: "0x31EeB2d0F9B6fD8642914aB10F4dD473677D80df",
217
- type: "stable"
218
- },
219
- WBTC: {
220
- address: "0xE36bC5d8b689AD6d80e78c3e736670e80d4b329D",
221
- type: "core"
222
- }
223
- // ZRX: {
224
- // address: "0xB730c1449c58f29C69df33ccD5bd9d3cA66b23C1",
225
- // priceFeedETH: "0xBc3f28Ccc21E9b5856E81E6372aFf57307E2E883",
226
- // type: "volatile",
227
- // },
209
+ DAI: "0x9DC7B33C3B63fc00ed5472fBD7813eDDa6a64752",
210
+ LINK: "0x6C994935826574E870549F09efF43BA8089A3D25",
211
+ SNX: "0xB48891df9267EF65AABd32F497F6F2d1eB22A186",
212
+ USDC: "0x31EeB2d0F9B6fD8642914aB10F4dD473677D80df",
213
+ WBTC: "0xE36bC5d8b689AD6d80e78c3e736670e80d4b329D",
214
+ "1INCH": "",
215
+ AAVE: "",
216
+ COMP: "",
217
+ CRV: "",
218
+ DPI: "",
219
+ FEI: "",
220
+ SUSHI: "",
221
+ UNI: "",
222
+ USDT: "",
223
+ WETH: "",
224
+ YFI: "",
225
+ /// UPDATE
226
+ STETH: "",
227
+ FTM: "",
228
+ CVX: "",
229
+ FRAX: "",
230
+ FXS: "",
231
+ LDO: "",
232
+ SPELL: "",
233
+ LUSD: "",
234
+ SUSD: "",
235
+ GUSD: "",
236
+ LUNA: "",
237
+ // YEARN TOKENS
238
+ yvDAI: "",
239
+ yvUSDC: "",
240
+ yvWETH: "",
241
+ yvWBTC: "",
242
+ // CURVE LP TOKENS
243
+ "3Crv": "",
244
+ steCRV: "",
245
+ FRAX3CRV: "",
246
+ LUSD3CRV: "",
247
+ crvPlain3andSUSD: "",
248
+ gusd3CRV: "",
249
+ // CONVEX LP TOKENS
250
+ cvx3Crv: "",
251
+ cvxsteCRV: "",
252
+ cvxFRAX3CRV: "",
253
+ cvxcrvPlain3andSUSD: "",
254
+ cvxgusd3CRV: "",
255
+ // YEARN- CURVE TOKENS
256
+ yvCurve_stETH: "",
257
+ yvCurve_FRAX: "",
258
+ yvCurve_d3pool: ""
228
259
  }
229
260
  };
@@ -1,6 +1,7 @@
1
1
  import { BigNumber } from "ethers";
2
2
  import { TokenDataPayload } from "../payload/token";
3
3
  import { NetworkType } from "./constants";
4
+ import { SupportedTokens } from "./token";
4
5
  export declare class TokenData {
5
6
  readonly id: string;
6
7
  readonly symbol: string;
@@ -20,9 +21,8 @@ export interface TokenAllowance {
20
21
  }
21
22
  export declare type TokenType = "core" | "stable" | "volatile" | "lp";
22
23
  export interface TokenSavedData {
23
- address: string;
24
24
  type: TokenType;
25
25
  }
26
26
  export declare const WETHToken: Record<NetworkType, string>;
27
- export declare const connectors: Record<NetworkType, Array<string>>;
27
+ export declare const connectors: Record<NetworkType, Array<SupportedTokens>>;
28
28
  export declare function getConnectors(networkType: NetworkType): string[];
@@ -45,10 +45,9 @@ exports.connectors = {
45
45
  };
46
46
  function getConnectors(networkType) {
47
47
  return exports.connectors[networkType].map(function (e) {
48
- var _a;
49
48
  var result = e === "WETH"
50
49
  ? exports.WETHToken[networkType]
51
- : (_a = token_1.tokenDataByNetwork[networkType][e]) === null || _a === void 0 ? void 0 : _a.address;
50
+ : token_1.tokenDataByNetwork[networkType][e];
52
51
  if (!result) {
53
52
  throw new Error("connector token ".concat(e, " not found"));
54
53
  }