@gearbox-protocol/sdk 2.1.33 → 2.1.35
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/contracts/index.sol +8 -0
- package/lib/contracts/protocols.d.ts +0 -5
- package/lib/contracts/protocols.js +1 -43
- package/lib/core/creditManager.d.ts +4 -1
- package/lib/core/creditManager.js +26 -4
- package/lib/core/pool/index.d.ts +0 -1
- package/lib/core/pool/index.js +0 -1
- package/lib/core/trade.d.ts +29 -16
- package/lib/core/trade.js +67 -10
- package/lib/index.d.ts +0 -11
- package/lib/index.js +1 -14
- package/lib/parsers/creditFacadeParser.js +2 -2
- package/lib/parsers/creditFacadeParser.spec.js +1 -2
- package/lib/parsers/txParser.js +1 -1
- package/lib/tokens/aave.d.ts +0 -3
- package/lib/tokens/aave.js +0 -57
- package/lib/tokens/balancer.d.ts +0 -10
- package/lib/tokens/balancer.js +0 -29
- package/lib/tokens/compound.d.ts +0 -2
- package/lib/tokens/compound.js +0 -36
- package/lib/tokens/convex.d.ts +2 -2
- package/lib/tokens/convex.js +9 -322
- package/lib/tokens/curveLP.d.ts +3 -4
- package/lib/tokens/curveLP.js +17 -240
- package/lib/tokens/gear.d.ts +0 -2
- package/lib/tokens/normal.d.ts +0 -3
- package/lib/tokens/normal.js +0 -718
- package/lib/tokens/yearn.d.ts +0 -4
- package/lib/tokens/yearn.js +0 -43
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/BalanceOps.d.ts +27 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/index.d.ts +1 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/index.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade.d.ts +147 -80
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents.d.ts +35 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended.d.ts +7 -7
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeV2.d.ts +66 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeV2.js +2 -0
- package/lib/types/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/BalanceOps__factory.d.ts +28 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/BalanceOps__factory.js +53 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/index.js +8 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeEvents__factory.js +45 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExceptions__factory.js +10 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeExtended__factory.js +0 -5
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeV2__factory.d.ts +18 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacadeV2__factory.js +42 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/ICreditFacade__factory.js +198 -46
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/index.d.ts +1 -0
- package/lib/types/factories/@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacade.sol/index.js +3 -1
- package/package.json +7 -2
- package/lib/core/adapter.d.ts +0 -20
- package/lib/core/adapter.js +0 -20
- package/lib/core/creditOperation.d.ts +0 -9
- package/lib/core/operations.d.ts +0 -22
- package/lib/core/operations.js +0 -26
- package/lib/core/pool/operation.d.ts +0 -28
- package/lib/core/pool/operation.js +0 -36
- package/lib/pathfinder/tradeTypes.d.ts +0 -113
- package/lib/pathfinder/tradeTypes.js +0 -28
- package/lib/strategies/convex.d.ts +0 -57
- package/lib/strategies/convex.js +0 -220
- package/lib/strategies/creditFacade.d.ts +0 -21
- package/lib/strategies/creditFacade.js +0 -71
- package/lib/strategies/curve.d.ts +0 -45
- package/lib/strategies/curve.js +0 -207
- package/lib/strategies/lido.d.ts +0 -18
- package/lib/strategies/lido.js +0 -51
- package/lib/strategies/uniswapV2.d.ts +0 -15
- package/lib/strategies/uniswapV2.js +0 -44
- package/lib/strategies/uniswapV3.d.ts +0 -21
- package/lib/strategies/uniswapV3.js +0 -71
- package/lib/strategies/yearn.d.ts +0 -20
- package/lib/strategies/yearn.js +0 -128
- package/lib/utils/extracter.d.ts +0 -11
- package/lib/utils/extracter.js +0 -19
- /package/lib/{core/creditOperation.js → types/@gearbox-protocol/core-v2/contracts/interfaces/Balances.sol/BalanceOps.js} +0 -0
package/lib/tokens/curveLP.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isCurveMetaToken = exports.isCurveLPToken = exports.curveTokens = exports.curveMetaTokens = exports.Curve3CrvUnderlyingTokenIndex = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
|
-
const tradeTypes_1 = require("../pathfinder/tradeTypes");
|
|
6
5
|
const tokenType_1 = require("./tokenType");
|
|
7
6
|
exports.Curve3CrvUnderlyingTokenIndex = {
|
|
8
7
|
DAI: ethers_1.BigNumber.from(0),
|
|
@@ -16,105 +15,35 @@ exports.curveMetaTokens = {
|
|
|
16
15
|
symbol: "FRAX3CRV",
|
|
17
16
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
18
17
|
pool: "CURVE_FRAX_POOL",
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
22
|
-
contract: "CURVE_FRAX_POOL",
|
|
23
|
-
tokenOut: ["FRAX", "3Crv"],
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
27
|
-
contract: "CONVEX_BOOSTER",
|
|
28
|
-
tokenOut: "cvxFRAX3CRV",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
32
|
-
contract: "CONVEX_BOOSTER",
|
|
33
|
-
tokenOut: "stkcvxFRAX3CRV",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
18
|
+
tokenOut: ["FRAX", "3Crv"],
|
|
36
19
|
},
|
|
37
20
|
LUSD3CRV: {
|
|
38
21
|
name: "Curve LUSD3CRV-f",
|
|
39
22
|
symbol: "LUSD3CRV",
|
|
40
23
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
41
24
|
pool: "CURVE_LUSD_POOL",
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
45
|
-
contract: "CURVE_LUSD_POOL",
|
|
46
|
-
tokenOut: ["LUSD", "3Crv"],
|
|
47
|
-
},
|
|
48
|
-
],
|
|
25
|
+
tokenOut: ["LUSD", "3Crv"],
|
|
49
26
|
},
|
|
50
27
|
gusd3CRV: {
|
|
51
28
|
name: "Curve gusd3CRV",
|
|
52
29
|
symbol: "gusd3CRV",
|
|
53
30
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
54
31
|
pool: "CURVE_GUSD_POOL",
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
58
|
-
contract: "CURVE_GUSD_POOL",
|
|
59
|
-
tokenOut: ["GUSD", "3Crv"],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
63
|
-
contract: "CONVEX_BOOSTER",
|
|
64
|
-
tokenOut: "cvxgusd3CRV",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
68
|
-
contract: "CONVEX_BOOSTER",
|
|
69
|
-
tokenOut: "stkcvxgusd3CRV",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
32
|
+
tokenOut: ["GUSD", "3Crv"],
|
|
72
33
|
},
|
|
73
34
|
MIM_3LP3CRV: {
|
|
74
35
|
name: "Curve MIM_3LP3CRV",
|
|
75
36
|
symbol: "MIM_3LP3CRV",
|
|
76
37
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
77
38
|
pool: "CURVE_MIM_POOL",
|
|
78
|
-
|
|
79
|
-
{
|
|
80
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
81
|
-
contract: "CURVE_MIM_POOL",
|
|
82
|
-
tokenOut: ["MIM", "3Crv"],
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
86
|
-
contract: "CONVEX_BOOSTER",
|
|
87
|
-
tokenOut: "cvxMIM_3LP3CRV",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
91
|
-
contract: "CONVEX_BOOSTER",
|
|
92
|
-
tokenOut: "stkcvxMIM_3LP3CRV",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
39
|
+
tokenOut: ["MIM", "3Crv"],
|
|
95
40
|
},
|
|
96
41
|
OHMFRAXBP: {
|
|
97
42
|
name: "Curve.fi Factory Crypto Pool: OHM/FRAXBP",
|
|
98
43
|
symbol: "OHMFRAXBP",
|
|
99
44
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
100
45
|
pool: "CURVE_OHMFRAXBP_POOL",
|
|
101
|
-
|
|
102
|
-
{
|
|
103
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
104
|
-
contract: "CURVE_OHMFRAXBP_POOL",
|
|
105
|
-
tokenOut: ["OHM", "FRAX", "USDC"],
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
109
|
-
contract: "CONVEX_BOOSTER",
|
|
110
|
-
tokenOut: "cvxOHMFRAXBP",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
114
|
-
contract: "CONVEX_BOOSTER",
|
|
115
|
-
tokenOut: "stkcvxOHMFRAXBP",
|
|
116
|
-
},
|
|
117
|
-
],
|
|
46
|
+
tokenOut: ["OHM", "FRAX", "USDC"],
|
|
118
47
|
},
|
|
119
48
|
};
|
|
120
49
|
exports.curveTokens = {
|
|
@@ -124,69 +53,21 @@ exports.curveTokens = {
|
|
|
124
53
|
symbol: "3Crv",
|
|
125
54
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
126
55
|
pool: "CURVE_3CRV_POOL",
|
|
127
|
-
|
|
128
|
-
{
|
|
129
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
130
|
-
contract: "CURVE_3CRV_POOL",
|
|
131
|
-
tokenOut: ["DAI", "USDC", "USDT"],
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
135
|
-
contract: "CONVEX_BOOSTER",
|
|
136
|
-
tokenOut: "cvx3Crv",
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
140
|
-
contract: "CONVEX_BOOSTER",
|
|
141
|
-
tokenOut: "stkcvx3Crv",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
56
|
+
tokenOut: ["DAI", "USDC", "USDT"],
|
|
144
57
|
},
|
|
145
58
|
crvFRAX: {
|
|
146
59
|
name: "Curve.fi FRAX/USDC",
|
|
147
60
|
symbol: "crvFRAX",
|
|
148
61
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
149
62
|
pool: "CURVE_FRAX_USDC_POOL",
|
|
150
|
-
|
|
151
|
-
{
|
|
152
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
153
|
-
contract: "CURVE_3CRV_POOL",
|
|
154
|
-
tokenOut: ["FRAX", "USDC"],
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
158
|
-
contract: "CONVEX_BOOSTER",
|
|
159
|
-
tokenOut: "cvxcrvFRAX",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
163
|
-
contract: "CONVEX_BOOSTER",
|
|
164
|
-
tokenOut: "stkcvxcrvFRAX",
|
|
165
|
-
},
|
|
166
|
-
],
|
|
63
|
+
tokenOut: ["FRAX", "USDC"],
|
|
167
64
|
},
|
|
168
65
|
steCRV: {
|
|
169
66
|
name: "Curve steCRV",
|
|
170
67
|
symbol: "steCRV",
|
|
171
68
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
172
69
|
pool: "CURVE_STETH_GATEWAY",
|
|
173
|
-
|
|
174
|
-
{
|
|
175
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
176
|
-
contract: "CURVE_STETH_GATEWAY",
|
|
177
|
-
tokenOut: ["STETH", "WETH"],
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
181
|
-
contract: "CONVEX_BOOSTER",
|
|
182
|
-
tokenOut: "cvxsteCRV",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
186
|
-
contract: "CONVEX_BOOSTER",
|
|
187
|
-
tokenOut: "stkcvxsteCRV",
|
|
188
|
-
},
|
|
189
|
-
],
|
|
70
|
+
tokenOut: ["STETH", "WETH"],
|
|
190
71
|
},
|
|
191
72
|
crvPlain3andSUSD: {
|
|
192
73
|
name: "Curve crvPlain3andSUSD",
|
|
@@ -194,167 +75,63 @@ exports.curveTokens = {
|
|
|
194
75
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
195
76
|
pool: "CURVE_SUSD_POOL",
|
|
196
77
|
wrapper: "CURVE_SUSD_DEPOSIT",
|
|
197
|
-
|
|
198
|
-
{
|
|
199
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
200
|
-
contract: "CURVE_SUSD_POOL",
|
|
201
|
-
tokenOut: ["DAI", "USDC", "USDT", "sUSD"],
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
205
|
-
contract: "CONVEX_BOOSTER",
|
|
206
|
-
tokenOut: "cvxcrvPlain3andSUSD",
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
210
|
-
contract: "CONVEX_BOOSTER",
|
|
211
|
-
tokenOut: "stkcvxcrvPlain3andSUSD",
|
|
212
|
-
},
|
|
213
|
-
],
|
|
78
|
+
tokenOut: ["DAI", "USDC", "USDT", "sUSD"],
|
|
214
79
|
},
|
|
215
80
|
crvCRVETH: {
|
|
216
81
|
name: "Curve CRV-ETH",
|
|
217
82
|
symbol: "crvCRVETH",
|
|
218
83
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
219
84
|
pool: "CURVE_CRVETH_POOL",
|
|
220
|
-
|
|
221
|
-
{
|
|
222
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
223
|
-
contract: "CURVE_CRVETH_POOL",
|
|
224
|
-
tokenOut: ["WETH", "CRV"],
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
228
|
-
contract: "CONVEX_BOOSTER",
|
|
229
|
-
tokenOut: "cvxcrvCRVETH",
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
233
|
-
contract: "CONVEX_BOOSTER",
|
|
234
|
-
tokenOut: "stkcvxcrvCRVETH",
|
|
235
|
-
},
|
|
236
|
-
],
|
|
85
|
+
tokenOut: ["WETH", "CRV"],
|
|
237
86
|
},
|
|
238
87
|
crvCVXETH: {
|
|
239
88
|
name: "Curve CVX-ETH",
|
|
240
89
|
symbol: "crvCVXETH",
|
|
241
90
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
242
91
|
pool: "CURVE_CVXETH_POOL",
|
|
243
|
-
|
|
244
|
-
{
|
|
245
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
246
|
-
contract: "CURVE_CVXETH_POOL",
|
|
247
|
-
tokenOut: ["WETH", "CVX"],
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
251
|
-
contract: "CONVEX_BOOSTER",
|
|
252
|
-
tokenOut: "cvxcrvCVXETH",
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
256
|
-
contract: "CONVEX_BOOSTER",
|
|
257
|
-
tokenOut: "stkcvxcrvCVXETH",
|
|
258
|
-
},
|
|
259
|
-
],
|
|
92
|
+
tokenOut: ["WETH", "CVX"],
|
|
260
93
|
},
|
|
261
94
|
crvUSDTWBTCWETH: {
|
|
262
95
|
name: "Curve USDT/WBTC/WETH",
|
|
263
96
|
symbol: "crvUSDTWBTCWETH",
|
|
264
97
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
265
98
|
pool: "CURVE_3CRYPTO_POOL",
|
|
266
|
-
|
|
267
|
-
{
|
|
268
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
269
|
-
contract: "CURVE_3CRYPTO_POOL",
|
|
270
|
-
tokenOut: ["USDT", "WBTC", "WETH"],
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
274
|
-
contract: "CONVEX_BOOSTER",
|
|
275
|
-
tokenOut: "cvxcrvUSDTWBTCWETH",
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
279
|
-
contract: "CONVEX_BOOSTER",
|
|
280
|
-
tokenOut: "stkcvxcrvUSDTWBTCWETH",
|
|
281
|
-
},
|
|
282
|
-
],
|
|
99
|
+
tokenOut: ["USDT", "WBTC", "WETH"],
|
|
283
100
|
},
|
|
284
101
|
LDOETH: {
|
|
285
102
|
name: "Curve LDOETH",
|
|
286
103
|
symbol: "LDOETH",
|
|
287
104
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
288
105
|
pool: "CURVE_LDOETH_POOL",
|
|
289
|
-
|
|
290
|
-
{
|
|
291
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
292
|
-
contract: "CURVE_LDOETH_POOL",
|
|
293
|
-
tokenOut: ["LDO", "WETH"],
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
type: tradeTypes_1.TradeType.ConvexDepositLP,
|
|
297
|
-
contract: "CONVEX_BOOSTER",
|
|
298
|
-
tokenOut: "cvxLDOETH",
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
type: tradeTypes_1.TradeType.ConvexDepositLPAndStake,
|
|
302
|
-
contract: "CONVEX_BOOSTER",
|
|
303
|
-
tokenOut: "stkcvxLDOETH",
|
|
304
|
-
},
|
|
305
|
-
],
|
|
106
|
+
tokenOut: ["LDO", "WETH"],
|
|
306
107
|
},
|
|
307
108
|
crvUSDUSDC: {
|
|
308
109
|
name: "Curve crvUSDUSDC",
|
|
309
110
|
symbol: "crvUSDUSDC",
|
|
310
111
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
311
112
|
pool: "CURVE_CRVUSD_USDC_POOL",
|
|
312
|
-
|
|
313
|
-
{
|
|
314
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
315
|
-
contract: "CURVE_CRVUSD_USDC_POOL",
|
|
316
|
-
tokenOut: ["crvUSD", "USDC"],
|
|
317
|
-
},
|
|
318
|
-
],
|
|
113
|
+
tokenOut: ["crvUSD", "USDC"],
|
|
319
114
|
},
|
|
320
115
|
crvUSDUSDT: {
|
|
321
116
|
name: "Curve crvUSDUSDT",
|
|
322
117
|
symbol: "crvUSDUSDT",
|
|
323
118
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
324
119
|
pool: "CURVE_CRVUSD_USDT_POOL",
|
|
325
|
-
|
|
326
|
-
{
|
|
327
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
328
|
-
contract: "CURVE_CRVUSD_USDT_POOL",
|
|
329
|
-
tokenOut: ["crvUSD", "USDT"],
|
|
330
|
-
},
|
|
331
|
-
],
|
|
120
|
+
tokenOut: ["crvUSD", "USDT"],
|
|
332
121
|
},
|
|
333
122
|
crvUSDFRAX: {
|
|
334
123
|
name: "Curve crvUSDFRAX",
|
|
335
124
|
symbol: "crvUSDFRAX",
|
|
336
125
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
337
126
|
pool: "CURVE_CRVUSD_USDC_POOL",
|
|
338
|
-
|
|
339
|
-
{
|
|
340
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
341
|
-
contract: "CURVE_CRVUSD_FRAX_POOL",
|
|
342
|
-
tokenOut: ["crvUSD", "FRAX"],
|
|
343
|
-
},
|
|
344
|
-
],
|
|
127
|
+
tokenOut: ["crvUSD", "FRAX"],
|
|
345
128
|
},
|
|
346
129
|
crvUSDETHCRV: {
|
|
347
130
|
name: "Curve crvUSDETHCRV",
|
|
348
131
|
symbol: "crvUSDETHCRV",
|
|
349
132
|
type: tokenType_1.TokenType.CURVE_LP_TOKEN,
|
|
350
133
|
pool: "CURVE_TRI_CRV_POOL",
|
|
351
|
-
|
|
352
|
-
{
|
|
353
|
-
type: tradeTypes_1.TradeType.CurveWithdrawLP,
|
|
354
|
-
contract: "CURVE_TRI_CRV_POOL",
|
|
355
|
-
tokenOut: ["crvUSD", "WETH", "CRV"],
|
|
356
|
-
},
|
|
357
|
-
],
|
|
134
|
+
tokenOut: ["crvUSD", "WETH", "CRV"],
|
|
358
135
|
},
|
|
359
136
|
...exports.curveMetaTokens,
|
|
360
137
|
};
|
package/lib/tokens/gear.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TradeAction } from "../pathfinder/tradeTypes";
|
|
2
1
|
import type { TokenBase } from "./token";
|
|
3
2
|
import { TokenType } from "./tokenType";
|
|
4
3
|
export type DieselTokenTypes = "dDAI" | "dUSDC" | "dWBTC" | "dWETH" | "dwstETH" | "dFRAX";
|
|
@@ -9,7 +8,6 @@ export type DieselTokenData = {
|
|
|
9
8
|
} & TokenBase;
|
|
10
9
|
export type GearboxTokenData = {
|
|
11
10
|
symbol: GearboxToken;
|
|
12
|
-
swapActions?: Array<TradeAction>;
|
|
13
11
|
type: TokenType.GEAR_TOKEN;
|
|
14
12
|
} & TokenBase;
|
|
15
13
|
export declare const gearTokens: Record<DieselTokenTypes | GearboxToken, DieselTokenData | GearboxTokenData>;
|
package/lib/tokens/normal.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { TradeAction } from "../pathfinder/tradeTypes";
|
|
2
1
|
import type { TokenBase } from "./token";
|
|
3
2
|
import { TokenType } from "./tokenType";
|
|
4
3
|
export type NormalToken = "1INCH" | "AAVE" | "COMP" | "CRV" | "DPI" | "FEI" | "LINK" | "SNX" | "UNI" | "USDT" | "USDC" | "DAI" | "WETH" | "WBTC" | "YFI" | "STETH" | "wstETH" | "CVX" | "FRAX" | "FXS" | "LDO" | "LUSD" | "sUSD" | "GUSD" | "LQTY" | "OHM" | "MIM" | "SPELL" | "GMX" | "ARB" | "RDNT" | "BAL" | "ARB" | "MKR" | "RPL" | "APE" | "SHIB" | "crvUSD";
|
|
5
4
|
export type NormalTokenData = {
|
|
6
5
|
symbol: NormalToken;
|
|
7
6
|
type: TokenType.NORMAL_TOKEN;
|
|
8
|
-
swapActions: Array<TradeAction>;
|
|
9
|
-
lpActions?: Array<TradeAction>;
|
|
10
7
|
} & TokenBase;
|
|
11
8
|
export declare const normalTokens: Record<NormalToken, NormalTokenData>;
|
|
12
9
|
export declare const isNormalToken: (t: unknown) => t is NormalToken;
|