@defisaver/automation-sdk 1.2.6 → 1.2.7
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/constants/index.js +2 -2
- package/esm/services/strategiesService.js +1 -1
- package/esm/types/enums.d.ts +1 -1
- package/esm/types/enums.js +1 -1
- package/package.json +1 -1
- package/src/constants/index.ts +2 -2
- package/src/services/strategiesService.ts +1 -1
- package/src/types/enums.ts +1 -1
- package/umd/index.js +4 -4
package/esm/constants/index.js
CHANGED
|
@@ -153,12 +153,12 @@ export const MAINNET_BUNDLES_INFO = {
|
|
|
153
153
|
[Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY]: {
|
|
154
154
|
strategyOrBundleId: Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY,
|
|
155
155
|
strategyId: Strategies.Identifiers.Repay,
|
|
156
|
-
protocol: PROTOCOLS.
|
|
156
|
+
protocol: PROTOCOLS.MorphoAaveV2,
|
|
157
157
|
},
|
|
158
158
|
[Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST]: {
|
|
159
159
|
strategyOrBundleId: Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST,
|
|
160
160
|
strategyId: Strategies.Identifiers.Boost,
|
|
161
|
-
protocol: PROTOCOLS.
|
|
161
|
+
protocol: PROTOCOLS.MorphoAaveV2,
|
|
162
162
|
},
|
|
163
163
|
};
|
|
164
164
|
export const OPTIMISM_BUNDLES_INFO = {
|
|
@@ -268,7 +268,7 @@ const parsingMethodsMapping = {
|
|
|
268
268
|
[ProtocolIdentifiers.StrategiesAutomation.ChickenBonds]: {
|
|
269
269
|
[Strategies.Identifiers.Rebond]: parseChickenBondsRebond,
|
|
270
270
|
},
|
|
271
|
-
[ProtocolIdentifiers.StrategiesAutomation.
|
|
271
|
+
[ProtocolIdentifiers.StrategiesAutomation.MorphoAaveV2]: {
|
|
272
272
|
[Strategies.Identifiers.Repay]: parseMorphoAaveV2LeverageManagement,
|
|
273
273
|
[Strategies.Identifiers.Boost]: parseMorphoAaveV2LeverageManagement,
|
|
274
274
|
},
|
package/esm/types/enums.d.ts
CHANGED
package/esm/types/enums.js
CHANGED
|
@@ -31,7 +31,7 @@ export var ProtocolIdentifiers;
|
|
|
31
31
|
StrategiesAutomation["ChickenBonds"] = "Chicken Bonds";
|
|
32
32
|
StrategiesAutomation["CompoundV3"] = "Compound__V3";
|
|
33
33
|
StrategiesAutomation["AaveV3"] = "Aave__V3";
|
|
34
|
-
StrategiesAutomation["
|
|
34
|
+
StrategiesAutomation["MorphoAaveV2"] = "Morpho-Aave__V2";
|
|
35
35
|
})(StrategiesAutomation = ProtocolIdentifiers.StrategiesAutomation || (ProtocolIdentifiers.StrategiesAutomation = {}));
|
|
36
36
|
let LegacyAutomation;
|
|
37
37
|
(function (LegacyAutomation) {
|
package/package.json
CHANGED
package/src/constants/index.ts
CHANGED
|
@@ -169,12 +169,12 @@ export const MAINNET_BUNDLES_INFO: MainnetBundleInfo = {
|
|
|
169
169
|
[Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY]: {
|
|
170
170
|
strategyOrBundleId: Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY,
|
|
171
171
|
strategyId: Strategies.Identifiers.Repay,
|
|
172
|
-
protocol: PROTOCOLS.
|
|
172
|
+
protocol: PROTOCOLS.MorphoAaveV2,
|
|
173
173
|
},
|
|
174
174
|
[Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST]: {
|
|
175
175
|
strategyOrBundleId: Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST,
|
|
176
176
|
strategyId: Strategies.Identifiers.Boost,
|
|
177
|
-
protocol: PROTOCOLS.
|
|
177
|
+
protocol: PROTOCOLS.MorphoAaveV2,
|
|
178
178
|
},
|
|
179
179
|
};
|
|
180
180
|
|
|
@@ -358,7 +358,7 @@ const parsingMethodsMapping: StrategiesToProtocolVersionMapping = {
|
|
|
358
358
|
[ProtocolIdentifiers.StrategiesAutomation.ChickenBonds]: {
|
|
359
359
|
[Strategies.Identifiers.Rebond]: parseChickenBondsRebond,
|
|
360
360
|
},
|
|
361
|
-
[ProtocolIdentifiers.StrategiesAutomation.
|
|
361
|
+
[ProtocolIdentifiers.StrategiesAutomation.MorphoAaveV2]: {
|
|
362
362
|
[Strategies.Identifiers.Repay]: parseMorphoAaveV2LeverageManagement,
|
|
363
363
|
[Strategies.Identifiers.Boost]: parseMorphoAaveV2LeverageManagement,
|
|
364
364
|
},
|
package/src/types/enums.ts
CHANGED
package/umd/index.js
CHANGED
|
@@ -260,12 +260,12 @@ var MAINNET_BUNDLES_INFO = {
|
|
|
260
260
|
[_types_enums__WEBPACK_IMPORTED_MODULE_0__.Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY]: {
|
|
261
261
|
strategyOrBundleId: _types_enums__WEBPACK_IMPORTED_MODULE_0__.Bundles.MainnetIds.MORPHO_AAVE_V2_REPAY,
|
|
262
262
|
strategyId: _types_enums__WEBPACK_IMPORTED_MODULE_0__.Strategies.Identifiers.Repay,
|
|
263
|
-
protocol: PROTOCOLS.
|
|
263
|
+
protocol: PROTOCOLS.MorphoAaveV2
|
|
264
264
|
},
|
|
265
265
|
[_types_enums__WEBPACK_IMPORTED_MODULE_0__.Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST]: {
|
|
266
266
|
strategyOrBundleId: _types_enums__WEBPACK_IMPORTED_MODULE_0__.Bundles.MainnetIds.MORPHO_AAVE_V2_BOOST,
|
|
267
267
|
strategyId: _types_enums__WEBPACK_IMPORTED_MODULE_0__.Strategies.Identifiers.Boost,
|
|
268
|
-
protocol: PROTOCOLS.
|
|
268
|
+
protocol: PROTOCOLS.MorphoAaveV2
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
var OPTIMISM_BUNDLES_INFO = {
|
|
@@ -371,7 +371,7 @@ var ProtocolIdentifiers;
|
|
|
371
371
|
StrategiesAutomation["ChickenBonds"] = "Chicken Bonds";
|
|
372
372
|
StrategiesAutomation["CompoundV3"] = "Compound__V3";
|
|
373
373
|
StrategiesAutomation["AaveV3"] = "Aave__V3";
|
|
374
|
-
StrategiesAutomation["
|
|
374
|
+
StrategiesAutomation["MorphoAaveV2"] = "Morpho-Aave__V2";
|
|
375
375
|
})(StrategiesAutomation || (StrategiesAutomation = {}));
|
|
376
376
|
_ProtocolIdentifiers.StrategiesAutomation = StrategiesAutomation;
|
|
377
377
|
var LegacyAutomation;
|
|
@@ -1699,7 +1699,7 @@ var parsingMethodsMapping = {
|
|
|
1699
1699
|
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.ProtocolIdentifiers.StrategiesAutomation.ChickenBonds]: {
|
|
1700
1700
|
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.Rebond]: parseChickenBondsRebond
|
|
1701
1701
|
},
|
|
1702
|
-
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.ProtocolIdentifiers.StrategiesAutomation.
|
|
1702
|
+
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.ProtocolIdentifiers.StrategiesAutomation.MorphoAaveV2]: {
|
|
1703
1703
|
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.Repay]: parseMorphoAaveV2LeverageManagement,
|
|
1704
1704
|
[_types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.Boost]: parseMorphoAaveV2LeverageManagement
|
|
1705
1705
|
}
|