@defisaver/automation-sdk 3.3.2-dev.0 → 3.3.2-dev.2
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.
|
@@ -725,9 +725,9 @@ function parseAaveV3LeverageManagementOnPrice(position, parseData) {
|
|
|
725
725
|
collAssetId: subData.collAssetId,
|
|
726
726
|
ratio: subData.targetRatio,
|
|
727
727
|
};
|
|
728
|
-
// TODO -> check if this change breaks something?
|
|
729
|
-
const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
730
|
-
_position.strategy.strategyId = isEOA ?
|
|
728
|
+
// // TODO -> check if this change breaks something?
|
|
729
|
+
// const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
730
|
+
// _position.strategy.strategyId = isEOA ? Strategies.IdOverrides.EoaLeverageManagementOnPrice : Strategies.IdOverrides.LeverageManagementOnPrice;
|
|
731
731
|
return _position;
|
|
732
732
|
}
|
|
733
733
|
function parseLiquityV2CloseOnPrice(position, parseData) {
|
|
@@ -696,9 +696,9 @@ function parseAaveV3LeverageManagementOnPrice(position, parseData) {
|
|
|
696
696
|
collAssetId: subData.collAssetId,
|
|
697
697
|
ratio: subData.targetRatio,
|
|
698
698
|
};
|
|
699
|
-
// TODO -> check if this change breaks something?
|
|
700
|
-
const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
701
|
-
_position.strategy.strategyId = isEOA ? Strategies.IdOverrides.EoaLeverageManagementOnPrice : Strategies.IdOverrides.LeverageManagementOnPrice;
|
|
699
|
+
// // TODO -> check if this change breaks something?
|
|
700
|
+
// const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
701
|
+
// _position.strategy.strategyId = isEOA ? Strategies.IdOverrides.EoaLeverageManagementOnPrice : Strategies.IdOverrides.LeverageManagementOnPrice;
|
|
702
702
|
return _position;
|
|
703
703
|
}
|
|
704
704
|
function parseLiquityV2CloseOnPrice(position, parseData) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/automation-sdk",
|
|
3
|
-
"version": "3.3.2-dev.
|
|
3
|
+
"version": "3.3.2-dev.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"repository": "https://github.com/defisaver/automation-sdk",
|
|
24
24
|
"license": "ISC",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@defisaver/sdk": "
|
|
26
|
+
"@defisaver/sdk": "1.3.5-dev.0",
|
|
27
27
|
"@defisaver/tokens": "^1.6.19",
|
|
28
28
|
"@ethersproject/address": "^5.0.10",
|
|
29
29
|
"@ethersproject/solidity": "^5.0.9",
|
|
@@ -950,9 +950,9 @@ function parseAaveV3LeverageManagementOnPrice(position: Position.Automated, pars
|
|
|
950
950
|
ratio: subData.targetRatio,
|
|
951
951
|
};
|
|
952
952
|
|
|
953
|
-
// TODO -> check if this change breaks something?
|
|
954
|
-
const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
955
|
-
_position.strategy.strategyId = isEOA ? Strategies.IdOverrides.EoaLeverageManagementOnPrice : Strategies.IdOverrides.LeverageManagementOnPrice;
|
|
953
|
+
// // TODO -> check if this change breaks something?
|
|
954
|
+
// const isEOA = _position.strategy.strategyId.includes('eoa');
|
|
955
|
+
// _position.strategy.strategyId = isEOA ? Strategies.IdOverrides.EoaLeverageManagementOnPrice : Strategies.IdOverrides.LeverageManagementOnPrice;
|
|
956
956
|
|
|
957
957
|
return _position;
|
|
958
958
|
}
|