@defisaver/automation-sdk 1.2.7 → 1.2.10
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/services/strategiesService.js +1 -1
- package/esm/services/strategySubService.d.ts +3 -0
- package/esm/services/strategySubService.js +5 -0
- package/esm/services/subDataService.d.ts +6 -5
- package/esm/services/subDataService.js +15 -7
- package/esm/services/triggerService.js +5 -5
- package/package.json +1 -1
- package/src/services/strategiesService.ts +1 -1
- package/src/services/strategySubService.ts +12 -0
- package/src/services/subDataService.ts +24 -9
- package/src/services/triggerService.ts +5 -5
- package/umd/index.js +31 -17
|
@@ -142,7 +142,7 @@ function parseMorphoAaveV2LeverageManagement(position, parseData) {
|
|
|
142
142
|
const { subStruct, subId } = parseData.subscriptionEventData;
|
|
143
143
|
const { isEnabled } = parseData.strategiesSubsData;
|
|
144
144
|
const triggerData = triggerService.morphoAaveV2RatioTrigger.decode(subStruct.triggerData);
|
|
145
|
-
const subData = subDataService.
|
|
145
|
+
const subData = subDataService.morphoAaveV2LeverageManagementSubData.decode(subStruct.subData);
|
|
146
146
|
_position.strategyData.decoded.triggerData = triggerData;
|
|
147
147
|
_position.strategyData.decoded.subData = subData;
|
|
148
148
|
const isRepay = _position.strategy.strategyId === Strategies.Identifiers.Repay;
|
|
@@ -31,3 +31,6 @@ export declare const aaveV3Encode: {
|
|
|
31
31
|
export declare const compoundV3Encode: {
|
|
32
32
|
leverageManagement(market: EthereumAddress, baseToken: EthereumAddress, minRatio: number, maxRatio: number, maxOptimalRatio: number, minOptimalRatio: number, boostEnabled: boolean, isEOA: boolean): string[];
|
|
33
33
|
};
|
|
34
|
+
export declare const morphoAaveV2Encode: {
|
|
35
|
+
leverageManagement(minRatio: number, maxRatio: number, maxOptimalRatio: number, minOptimalRatio: number, boostEnabled: boolean): string[];
|
|
36
|
+
};
|
|
@@ -99,3 +99,8 @@ export const compoundV3Encode = {
|
|
|
99
99
|
return subDataService.compoundV3LeverageManagementSubData.encode(market, baseToken, minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled, isEOA);
|
|
100
100
|
},
|
|
101
101
|
};
|
|
102
|
+
export const morphoAaveV2Encode = {
|
|
103
|
+
leverageManagement(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled) {
|
|
104
|
+
return subDataService.morphoAaveV2LeverageManagementSubData.encode(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled);
|
|
105
|
+
},
|
|
106
|
+
};
|
|
@@ -34,11 +34,6 @@ export declare const aaveLeverageManagementSubData: {
|
|
|
34
34
|
targetRatio: number;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export declare const morphoLeverageManagementSubData: {
|
|
38
|
-
decode(subData: string[]): {
|
|
39
|
-
targetRatio: number;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
37
|
export declare const aaveV3QuotePriceSubData: {
|
|
43
38
|
encode(collAsset: EthereumAddress, collAssetId: number, debtAsset: EthereumAddress, debtAssetId: number, nullAddress?: EthereumAddress): string[];
|
|
44
39
|
decode(subData: string[]): {
|
|
@@ -54,6 +49,12 @@ export declare const compoundV3LeverageManagementSubData: {
|
|
|
54
49
|
targetRatio: number;
|
|
55
50
|
};
|
|
56
51
|
};
|
|
52
|
+
export declare const morphoAaveV2LeverageManagementSubData: {
|
|
53
|
+
encode(minRatio: number, maxRatio: number, maxOptimalRatio: number, minOptimalRatio: number, boostEnabled: boolean): string[];
|
|
54
|
+
decode(subData: string[]): {
|
|
55
|
+
targetRatio: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
57
58
|
export declare const cBondsRebondSubData: {
|
|
58
59
|
encode(bondId: number | string): string[];
|
|
59
60
|
decode(subData: string[]): {
|
|
@@ -96,13 +96,6 @@ export const aaveLeverageManagementSubData = {
|
|
|
96
96
|
return { targetRatio };
|
|
97
97
|
},
|
|
98
98
|
};
|
|
99
|
-
export const morphoLeverageManagementSubData = {
|
|
100
|
-
decode(subData) {
|
|
101
|
-
const ratioWei = mockedWeb3.eth.abi.decodeParameter('uint256', subData[0]);
|
|
102
|
-
const targetRatio = weiToRatioPercentage(ratioWei);
|
|
103
|
-
return { targetRatio };
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
99
|
export const aaveV3QuotePriceSubData = {
|
|
107
100
|
encode(collAsset, collAssetId, debtAsset, debtAssetId, nullAddress = ZERO_ADDRESS) {
|
|
108
101
|
const encodedColl = mockedWeb3.eth.abi.encodeParameter('address', collAsset);
|
|
@@ -141,6 +134,21 @@ export const compoundV3LeverageManagementSubData = {
|
|
|
141
134
|
return { targetRatio };
|
|
142
135
|
},
|
|
143
136
|
};
|
|
137
|
+
export const morphoAaveV2LeverageManagementSubData = {
|
|
138
|
+
encode(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled) {
|
|
139
|
+
const encodedMinRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(minRatio).mul(1e16).toString());
|
|
140
|
+
const encodedMaxRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(maxRatio).mul(1e16).toString());
|
|
141
|
+
const encodedMaxOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(maxOptimalRatio).mul(1e16).toString());
|
|
142
|
+
const encodedMinOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(minOptimalRatio).mul(1e16).toString());
|
|
143
|
+
const encodedBoostEnabled = mockedWeb3.eth.abi.encodeParameter('bool', boostEnabled);
|
|
144
|
+
return [encodedMinRatio, encodedMaxRatio, encodedMaxOptimalRatio, encodedMinOptimalRatio, encodedBoostEnabled];
|
|
145
|
+
},
|
|
146
|
+
decode(subData) {
|
|
147
|
+
const ratioWei = mockedWeb3.eth.abi.decodeParameter('uint128', subData[1]);
|
|
148
|
+
const targetRatio = weiToRatioPercentage(ratioWei);
|
|
149
|
+
return { targetRatio };
|
|
150
|
+
},
|
|
151
|
+
};
|
|
144
152
|
export const cBondsRebondSubData = {
|
|
145
153
|
encode(bondId) {
|
|
146
154
|
const bondIdEncoded = mockedWeb3.eth.abi.encodeParameter('uint256', bondId);
|
|
@@ -49,15 +49,15 @@ export const aaveV3RatioTrigger = {
|
|
|
49
49
|
};
|
|
50
50
|
export const morphoAaveV2RatioTrigger = {
|
|
51
51
|
encode(owner, ratioPercentage, ratioState) {
|
|
52
|
-
const ratioWei =
|
|
53
|
-
return [mockedWeb3.eth.abi.encodeParameters(['address', '
|
|
52
|
+
const ratioWei = new Dec(ratioPercentage).mul(1e16).toString();
|
|
53
|
+
return [mockedWeb3.eth.abi.encodeParameters(['address', 'uint128', 'uint8'], [owner, ratioWei, ratioState])];
|
|
54
54
|
},
|
|
55
55
|
decode(triggerData) {
|
|
56
|
-
const decodedData = mockedWeb3.eth.abi.decodeParameters(['address', '
|
|
56
|
+
const decodedData = mockedWeb3.eth.abi.decodeParameters(['address', 'uint128', 'uint8'], triggerData[0]);
|
|
57
57
|
return {
|
|
58
58
|
owner: decodedData[0],
|
|
59
|
-
ratio: new Dec(
|
|
60
|
-
ratioState: Number(decodedData[
|
|
59
|
+
ratio: new Dec(decodedData[1]).div(1e16).toNumber(),
|
|
60
|
+
ratioState: Number(decodedData[2]),
|
|
61
61
|
};
|
|
62
62
|
},
|
|
63
63
|
};
|
package/package.json
CHANGED
|
@@ -198,7 +198,7 @@ function parseMorphoAaveV2LeverageManagement(position: Position.Automated, parse
|
|
|
198
198
|
const { isEnabled } = parseData.strategiesSubsData;
|
|
199
199
|
|
|
200
200
|
const triggerData = triggerService.morphoAaveV2RatioTrigger.decode(subStruct.triggerData);
|
|
201
|
-
const subData = subDataService.
|
|
201
|
+
const subData = subDataService.morphoAaveV2LeverageManagementSubData.decode(subStruct.subData);
|
|
202
202
|
|
|
203
203
|
_position.strategyData.decoded.triggerData = triggerData;
|
|
204
204
|
_position.strategyData.decoded.subData = subData;
|
|
@@ -217,3 +217,15 @@ export const compoundV3Encode = {
|
|
|
217
217
|
return subDataService.compoundV3LeverageManagementSubData.encode(market, baseToken, minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled, isEOA);
|
|
218
218
|
},
|
|
219
219
|
};
|
|
220
|
+
|
|
221
|
+
export const morphoAaveV2Encode = {
|
|
222
|
+
leverageManagement(
|
|
223
|
+
minRatio: number,
|
|
224
|
+
maxRatio: number,
|
|
225
|
+
maxOptimalRatio: number,
|
|
226
|
+
minOptimalRatio: number,
|
|
227
|
+
boostEnabled: boolean,
|
|
228
|
+
) {
|
|
229
|
+
return subDataService.morphoAaveV2LeverageManagementSubData.encode(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled);
|
|
230
|
+
},
|
|
231
|
+
};
|
|
@@ -134,15 +134,6 @@ export const aaveLeverageManagementSubData = { // TODO encode?
|
|
|
134
134
|
},
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
export const morphoLeverageManagementSubData = {
|
|
138
|
-
decode(subData: SubData): { targetRatio: number } {
|
|
139
|
-
const ratioWei = mockedWeb3.eth.abi.decodeParameter('uint256', subData[0]) as any as string;
|
|
140
|
-
const targetRatio = weiToRatioPercentage(ratioWei);
|
|
141
|
-
|
|
142
|
-
return { targetRatio };
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
|
|
146
137
|
export const aaveV3QuotePriceSubData = {
|
|
147
138
|
encode(
|
|
148
139
|
collAsset: EthereumAddress,
|
|
@@ -204,6 +195,30 @@ export const compoundV3LeverageManagementSubData = {
|
|
|
204
195
|
},
|
|
205
196
|
};
|
|
206
197
|
|
|
198
|
+
export const morphoAaveV2LeverageManagementSubData = {
|
|
199
|
+
encode(
|
|
200
|
+
minRatio: number,
|
|
201
|
+
maxRatio: number,
|
|
202
|
+
maxOptimalRatio: number,
|
|
203
|
+
minOptimalRatio: number,
|
|
204
|
+
boostEnabled: boolean,
|
|
205
|
+
): SubData {
|
|
206
|
+
const encodedMinRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(minRatio).mul(1e16).toString());
|
|
207
|
+
const encodedMaxRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(maxRatio).mul(1e16).toString());
|
|
208
|
+
const encodedMaxOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(maxOptimalRatio).mul(1e16).toString());
|
|
209
|
+
const encodedMinOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new Dec(minOptimalRatio).mul(1e16).toString());
|
|
210
|
+
const encodedBoostEnabled = mockedWeb3.eth.abi.encodeParameter('bool', boostEnabled);
|
|
211
|
+
|
|
212
|
+
return [encodedMinRatio, encodedMaxRatio, encodedMaxOptimalRatio, encodedMinOptimalRatio, encodedBoostEnabled];
|
|
213
|
+
},
|
|
214
|
+
decode(subData: SubData): { targetRatio: number } {
|
|
215
|
+
const ratioWei = mockedWeb3.eth.abi.decodeParameter('uint128', subData[1]) as any as string;
|
|
216
|
+
const targetRatio = weiToRatioPercentage(ratioWei);
|
|
217
|
+
|
|
218
|
+
return { targetRatio };
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
|
|
207
222
|
export const cBondsRebondSubData = {
|
|
208
223
|
encode(bondId: number | string): SubData {
|
|
209
224
|
const bondIdEncoded = mockedWeb3.eth.abi.encodeParameter('uint256', bondId);
|
|
@@ -61,15 +61,15 @@ export const aaveV3RatioTrigger = {
|
|
|
61
61
|
|
|
62
62
|
export const morphoAaveV2RatioTrigger = {
|
|
63
63
|
encode(owner: EthereumAddress, ratioPercentage: number, ratioState: RatioState) {
|
|
64
|
-
const ratioWei =
|
|
65
|
-
return [mockedWeb3.eth.abi.encodeParameters(['address', '
|
|
64
|
+
const ratioWei = new Dec(ratioPercentage).mul(1e16).toString();
|
|
65
|
+
return [mockedWeb3.eth.abi.encodeParameters(['address', 'uint128', 'uint8'], [owner, ratioWei, ratioState])];
|
|
66
66
|
},
|
|
67
67
|
decode(triggerData: TriggerData) {
|
|
68
|
-
const decodedData = mockedWeb3.eth.abi.decodeParameters(['address', '
|
|
68
|
+
const decodedData = mockedWeb3.eth.abi.decodeParameters(['address', 'uint128', 'uint8'], triggerData[0]) as string[];
|
|
69
69
|
return {
|
|
70
70
|
owner: decodedData[0],
|
|
71
|
-
ratio: new Dec(
|
|
72
|
-
ratioState: Number(decodedData[
|
|
71
|
+
ratio: new Dec(decodedData[1]).div(1e16).toNumber(),
|
|
72
|
+
ratioState: Number(decodedData[2]),
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
};
|
package/umd/index.js
CHANGED
|
@@ -1561,7 +1561,7 @@ function parseMorphoAaveV2LeverageManagement(position, parseData) {
|
|
|
1561
1561
|
isEnabled
|
|
1562
1562
|
} = parseData.strategiesSubsData;
|
|
1563
1563
|
var triggerData = _triggerService__WEBPACK_IMPORTED_MODULE_5__.morphoAaveV2RatioTrigger.decode(subStruct.triggerData);
|
|
1564
|
-
var subData = _subDataService__WEBPACK_IMPORTED_MODULE_4__.
|
|
1564
|
+
var subData = _subDataService__WEBPACK_IMPORTED_MODULE_4__.morphoAaveV2LeverageManagementSubData.decode(subStruct.subData);
|
|
1565
1565
|
_position.strategyData.decoded.triggerData = triggerData;
|
|
1566
1566
|
_position.strategyData.decoded.subData = subData;
|
|
1567
1567
|
var isRepay = _position.strategy.strategyId === _types_enums__WEBPACK_IMPORTED_MODULE_2__.Strategies.Identifiers.Repay;
|
|
@@ -18976,7 +18976,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18976
18976
|
/* harmony export */ "makerCloseSubData": () => (/* binding */ makerCloseSubData),
|
|
18977
18977
|
/* harmony export */ "makerLeverageManagementSubData": () => (/* binding */ makerLeverageManagementSubData),
|
|
18978
18978
|
/* harmony export */ "makerRepayFromSavingsSubData": () => (/* binding */ makerRepayFromSavingsSubData),
|
|
18979
|
-
/* harmony export */ "
|
|
18979
|
+
/* harmony export */ "morphoAaveV2LeverageManagementSubData": () => (/* binding */ morphoAaveV2LeverageManagementSubData)
|
|
18980
18980
|
/* harmony export */ });
|
|
18981
18981
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
18982
18982
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -19102,15 +19102,6 @@ var aaveLeverageManagementSubData = {
|
|
|
19102
19102
|
};
|
|
19103
19103
|
}
|
|
19104
19104
|
};
|
|
19105
|
-
var morphoLeverageManagementSubData = {
|
|
19106
|
-
decode(subData) {
|
|
19107
|
-
var ratioWei = mockedWeb3.eth.abi.decodeParameter('uint256', subData[0]);
|
|
19108
|
-
var targetRatio = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.weiToRatioPercentage)(ratioWei);
|
|
19109
|
-
return {
|
|
19110
|
-
targetRatio
|
|
19111
|
-
};
|
|
19112
|
-
}
|
|
19113
|
-
};
|
|
19114
19105
|
var aaveV3QuotePriceSubData = {
|
|
19115
19106
|
encode(collAsset, collAssetId, debtAsset, debtAssetId) {
|
|
19116
19107
|
var nullAddress = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : _constants__WEBPACK_IMPORTED_MODULE_4__.ZERO_ADDRESS;
|
|
@@ -19148,6 +19139,23 @@ var compoundV3LeverageManagementSubData = {
|
|
|
19148
19139
|
};
|
|
19149
19140
|
}
|
|
19150
19141
|
};
|
|
19142
|
+
var morphoAaveV2LeverageManagementSubData = {
|
|
19143
|
+
encode(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled) {
|
|
19144
|
+
var encodedMinRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(minRatio).mul(1e16).toString());
|
|
19145
|
+
var encodedMaxRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(maxRatio).mul(1e16).toString());
|
|
19146
|
+
var encodedMaxOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(maxOptimalRatio).mul(1e16).toString());
|
|
19147
|
+
var encodedMinOptimalRatio = mockedWeb3.eth.abi.encodeParameter('uint128', new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(minOptimalRatio).mul(1e16).toString());
|
|
19148
|
+
var encodedBoostEnabled = mockedWeb3.eth.abi.encodeParameter('bool', boostEnabled);
|
|
19149
|
+
return [encodedMinRatio, encodedMaxRatio, encodedMaxOptimalRatio, encodedMinOptimalRatio, encodedBoostEnabled];
|
|
19150
|
+
},
|
|
19151
|
+
decode(subData) {
|
|
19152
|
+
var ratioWei = mockedWeb3.eth.abi.decodeParameter('uint128', subData[1]);
|
|
19153
|
+
var targetRatio = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.weiToRatioPercentage)(ratioWei);
|
|
19154
|
+
return {
|
|
19155
|
+
targetRatio
|
|
19156
|
+
};
|
|
19157
|
+
}
|
|
19158
|
+
};
|
|
19151
19159
|
var cBondsRebondSubData = {
|
|
19152
19160
|
encode(bondId) {
|
|
19153
19161
|
var bondIdEncoded = mockedWeb3.eth.abi.encodeParameter('uint256', bondId);
|
|
@@ -28768,15 +28776,15 @@ var aaveV3RatioTrigger = {
|
|
|
28768
28776
|
};
|
|
28769
28777
|
var morphoAaveV2RatioTrigger = {
|
|
28770
28778
|
encode(owner, ratioPercentage, ratioState) {
|
|
28771
|
-
var ratioWei = (
|
|
28772
|
-
return [mockedWeb3.eth.abi.encodeParameters(['address', '
|
|
28779
|
+
var ratioWei = new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(ratioPercentage).mul(1e16).toString();
|
|
28780
|
+
return [mockedWeb3.eth.abi.encodeParameters(['address', 'uint128', 'uint8'], [owner, ratioWei, ratioState])];
|
|
28773
28781
|
},
|
|
28774
28782
|
decode(triggerData) {
|
|
28775
|
-
var decodedData = mockedWeb3.eth.abi.decodeParameters(['address', '
|
|
28783
|
+
var decodedData = mockedWeb3.eth.abi.decodeParameters(['address', 'uint128', 'uint8'], triggerData[0]);
|
|
28776
28784
|
return {
|
|
28777
28785
|
owner: decodedData[0],
|
|
28778
|
-
ratio: new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(
|
|
28779
|
-
ratioState: Number(decodedData[
|
|
28786
|
+
ratio: new (decimal_js__WEBPACK_IMPORTED_MODULE_0___default())(decodedData[1]).div(1e16).toNumber(),
|
|
28787
|
+
ratioState: Number(decodedData[2])
|
|
28780
28788
|
};
|
|
28781
28789
|
}
|
|
28782
28790
|
};
|
|
@@ -28943,7 +28951,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28943
28951
|
/* harmony export */ "chickenBondsEncode": () => (/* binding */ chickenBondsEncode),
|
|
28944
28952
|
/* harmony export */ "compoundV3Encode": () => (/* binding */ compoundV3Encode),
|
|
28945
28953
|
/* harmony export */ "liquityEncode": () => (/* binding */ liquityEncode),
|
|
28946
|
-
/* harmony export */ "makerEncode": () => (/* binding */ makerEncode)
|
|
28954
|
+
/* harmony export */ "makerEncode": () => (/* binding */ makerEncode),
|
|
28955
|
+
/* harmony export */ "morphoAaveV2Encode": () => (/* binding */ morphoAaveV2Encode)
|
|
28947
28956
|
/* harmony export */ });
|
|
28948
28957
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
|
|
28949
28958
|
/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(decimal_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -29069,6 +29078,11 @@ var compoundV3Encode = {
|
|
|
29069
29078
|
return _subDataService__WEBPACK_IMPORTED_MODULE_3__.compoundV3LeverageManagementSubData.encode(market, baseToken, minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled, isEOA);
|
|
29070
29079
|
}
|
|
29071
29080
|
};
|
|
29081
|
+
var morphoAaveV2Encode = {
|
|
29082
|
+
leverageManagement(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled) {
|
|
29083
|
+
return _subDataService__WEBPACK_IMPORTED_MODULE_3__.morphoAaveV2LeverageManagementSubData.encode(minRatio, maxRatio, maxOptimalRatio, minOptimalRatio, boostEnabled);
|
|
29084
|
+
}
|
|
29085
|
+
};
|
|
29072
29086
|
|
|
29073
29087
|
/***/ })
|
|
29074
29088
|
/******/ ]);
|