@defisaver/sdk 1.0.18 → 1.0.19
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/esm/src/addresses.js +2 -2
- package/esm/src/utils/convex-utils.d.ts +10 -0
- package/esm/src/utils/convexPoolInfo.json +18 -0
- package/esm/src/utils/curvePoolInfo.json +96 -0
- package/esm/src/utils/index.d.ts +2 -1
- package/esm/src/utils/index.js +2 -1
- package/package.json +1 -1
- package/src/addresses.ts +2 -2
- package/src/utils/convexPoolInfo.json +1056 -1038
- package/src/utils/curvePoolInfo.json +298 -202
- package/src/utils/index.ts +2 -0
- package/umd/index.js +7 -4
package/esm/src/addresses.js
CHANGED
|
@@ -134,8 +134,8 @@ export const actionAddresses = {
|
|
|
134
134
|
GasFeeTaker: '0x431F1E1A9859EF99953801dbdeB31d2846ADcc0d',
|
|
135
135
|
CurveStethPoolDeposit: '0x5Ae5870dC0C780e9eb68bE7a223eCd7F3BDad12B',
|
|
136
136
|
CurveStethPoolWithdraw: '0x4089731d843Ce52699Fe64F68556aBbD95D70D00',
|
|
137
|
-
CurveDeposit: '
|
|
138
|
-
CurveWithdraw: '
|
|
137
|
+
CurveDeposit: '0xf46aCCE6d2559971bF5Aea03A10B3679709CE43d',
|
|
138
|
+
CurveWithdraw: '0x558E1242daf42a2Cc9c581D9806EE4309bB8Cf83',
|
|
139
139
|
McdBoostComposite: '0x0000000000000000000000000000000000000000',
|
|
140
140
|
McdRepayComposite: '0x0000000000000000000000000000000000000000',
|
|
141
141
|
// Euler
|
|
@@ -39,4 +39,14 @@ export declare const getConvexPool: (curveLpToken: string) => {
|
|
|
39
39
|
token: string;
|
|
40
40
|
}[];
|
|
41
41
|
noTest: boolean;
|
|
42
|
+
} | {
|
|
43
|
+
pid: number;
|
|
44
|
+
lpToken: string;
|
|
45
|
+
token: string;
|
|
46
|
+
gauge: string;
|
|
47
|
+
crvRewards: string;
|
|
48
|
+
stash: string;
|
|
49
|
+
extraRewards: never[];
|
|
50
|
+
shutdown?: undefined;
|
|
51
|
+
noTest?: undefined;
|
|
42
52
|
} | undefined;
|
|
@@ -1035,5 +1035,23 @@
|
|
|
1035
1035
|
"shutdown": false,
|
|
1036
1036
|
"extraRewards": [],
|
|
1037
1037
|
"noTest": true
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"pid": 154,
|
|
1041
|
+
"lpToken": "0x6c38cE8984a890F5e46e6dF6117C26b3F1EcfC9C",
|
|
1042
|
+
"token": "0x96C01B43853bE9E27363B15bE620769437cBa345",
|
|
1043
|
+
"gauge": "0x9d4D981d8a9066f5db8532A5816543dE8819d4A8",
|
|
1044
|
+
"crvRewards": "0x65C8aa24db76e870DEDfC35701eff84de405D1ba",
|
|
1045
|
+
"stash": "0x8A297eFeDE43f47f76014a82D1B910Ee05d83226",
|
|
1046
|
+
"extraRewards": []
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"pid": 127,
|
|
1050
|
+
"lpToken": "0x5b6C539b224014A09B3388e51CaAA8e354c959C8",
|
|
1051
|
+
"token": "0x06A2C4431FB5dBfECbCbA15154Dd53E374c14292",
|
|
1052
|
+
"gauge": "0xAd96E10123Fa34a01cf2314C42D75150849C9295",
|
|
1053
|
+
"crvRewards": "0x5d02EcD9B83f1187e92aD5be3d1bd2915CA03699",
|
|
1054
|
+
"stash": "0xDdc53D3B91090CD99d87ee1E6108857732fB5E4A",
|
|
1055
|
+
"extraRewards": []
|
|
1038
1056
|
}
|
|
1039
1057
|
]
|
|
@@ -199,5 +199,101 @@
|
|
|
199
199
|
0
|
|
200
200
|
],
|
|
201
201
|
"zapType": 0
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "lusd",
|
|
205
|
+
"swapAddr": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
206
|
+
"depositContract": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
207
|
+
"devComment": "it would follow logic that the depositContract should be the 3pool zap but because of the smart contract logic it is overridden here",
|
|
208
|
+
"nCoins": 2,
|
|
209
|
+
"coins": [
|
|
210
|
+
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
|
|
211
|
+
"0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490"
|
|
212
|
+
],
|
|
213
|
+
"decimals": [
|
|
214
|
+
18,
|
|
215
|
+
18
|
|
216
|
+
],
|
|
217
|
+
"underlyingCoins": [
|
|
218
|
+
"0x5f98805A4E8be255a32880FDeC7F6728C6568bA0",
|
|
219
|
+
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
|
|
220
|
+
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
221
|
+
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
|
|
222
|
+
],
|
|
223
|
+
"underlyingDecimals": [
|
|
224
|
+
18,
|
|
225
|
+
18,
|
|
226
|
+
6,
|
|
227
|
+
6
|
|
228
|
+
],
|
|
229
|
+
"isMeta": true,
|
|
230
|
+
"lpToken": "0xEd279fDD11cA84bEef15AF5D39BB4d4bEE23F0cA",
|
|
231
|
+
"gauges": [
|
|
232
|
+
"0x9B8519A9a00100720CCdC8a120fBeD319cA47a14"
|
|
233
|
+
],
|
|
234
|
+
"gaugeTypes": [
|
|
235
|
+
0
|
|
236
|
+
],
|
|
237
|
+
"zapType": 2
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "reth",
|
|
241
|
+
"isFactory": true,
|
|
242
|
+
"swapAddr": "0x0f3159811670c117c372428D4E69AC32325e4D0F",
|
|
243
|
+
"nCoins": 2,
|
|
244
|
+
"coins": [
|
|
245
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
246
|
+
"0xae78736Cd615f374D3085123A210448E74Fc6393"
|
|
247
|
+
],
|
|
248
|
+
"decimals": [
|
|
249
|
+
18,
|
|
250
|
+
18
|
|
251
|
+
],
|
|
252
|
+
"underlyingCoins": [
|
|
253
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
254
|
+
"0xae78736Cd615f374D3085123A210448E74Fc6393"
|
|
255
|
+
],
|
|
256
|
+
"underlyingDecimals": [
|
|
257
|
+
18,
|
|
258
|
+
18
|
|
259
|
+
],
|
|
260
|
+
"isMeta": false,
|
|
261
|
+
"lpToken": "0x6c38cE8984a890F5e46e6dF6117C26b3F1EcfC9C",
|
|
262
|
+
"gauges": [
|
|
263
|
+
"0x9d4D981d8a9066f5db8532A5816543dE8819d4A8"
|
|
264
|
+
],
|
|
265
|
+
"gaugeTypes": [
|
|
266
|
+
0
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "cbeth",
|
|
271
|
+
"isFactory": true,
|
|
272
|
+
"swapAddr": "0x5FAE7E604FC3e24fd43A72867ceBaC94c65b404A",
|
|
273
|
+
"nCoins": 2,
|
|
274
|
+
"coins": [
|
|
275
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
276
|
+
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
|
|
277
|
+
],
|
|
278
|
+
"decimals": [
|
|
279
|
+
18,
|
|
280
|
+
18
|
|
281
|
+
],
|
|
282
|
+
"underlyingCoins": [
|
|
283
|
+
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
284
|
+
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
|
|
285
|
+
],
|
|
286
|
+
"underlyingDecimals": [
|
|
287
|
+
18,
|
|
288
|
+
18
|
|
289
|
+
],
|
|
290
|
+
"isMeta": false,
|
|
291
|
+
"lpToken": "0x5b6C539b224014A09B3388e51CaAA8e354c959C8",
|
|
292
|
+
"gauges": [
|
|
293
|
+
"0xAd96E10123Fa34a01cf2314C42D75150849C9295"
|
|
294
|
+
],
|
|
295
|
+
"gaugeTypes": [
|
|
296
|
+
0
|
|
297
|
+
]
|
|
202
298
|
}
|
|
203
299
|
]
|
package/esm/src/utils/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import * as uniswapLP from './uniswapLP';
|
|
|
3
3
|
import * as uniswapV3LP from './uniswapV3LP';
|
|
4
4
|
import * as convexUtils from './convex-utils';
|
|
5
5
|
import mstableAssetPairs from './mstableAssetPairs';
|
|
6
|
-
|
|
6
|
+
import * as curveUtils from './curve-utils';
|
|
7
|
+
export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, };
|
package/esm/src/utils/index.js
CHANGED
|
@@ -3,4 +3,5 @@ import * as uniswapLP from './uniswapLP';
|
|
|
3
3
|
import * as uniswapV3LP from './uniswapV3LP';
|
|
4
4
|
import * as convexUtils from './convex-utils';
|
|
5
5
|
import mstableAssetPairs from './mstableAssetPairs';
|
|
6
|
-
|
|
6
|
+
import * as curveUtils from './curve-utils';
|
|
7
|
+
export { zeroExExchange, uniswapLP, uniswapV3LP, mstableAssetPairs, convexUtils, curveUtils, };
|
package/package.json
CHANGED
package/src/addresses.ts
CHANGED
|
@@ -160,8 +160,8 @@ export const actionAddresses = {
|
|
|
160
160
|
CurveStethPoolDeposit: '0x5Ae5870dC0C780e9eb68bE7a223eCd7F3BDad12B',
|
|
161
161
|
CurveStethPoolWithdraw: '0x4089731d843Ce52699Fe64F68556aBbD95D70D00',
|
|
162
162
|
|
|
163
|
-
CurveDeposit: '
|
|
164
|
-
CurveWithdraw: '
|
|
163
|
+
CurveDeposit: '0xf46aCCE6d2559971bF5Aea03A10B3679709CE43d',
|
|
164
|
+
CurveWithdraw: '0x558E1242daf42a2Cc9c581D9806EE4309bB8Cf83',
|
|
165
165
|
|
|
166
166
|
McdBoostComposite: '0x0000000000000000000000000000000000000000',
|
|
167
167
|
McdRepayComposite: '0x0000000000000000000000000000000000000000',
|