@defisaver/automation-sdk 3.3.2-dev.9 → 3.3.2-npm-workflow-dev

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.
@@ -208,7 +208,7 @@ function parseAaveV3LeverageManagement(position, parseData) {
208
208
  _position.specific = {
209
209
  triggerRepayRatio: triggerData.ratio,
210
210
  targetRepayRatio: subData.targetRatio,
211
- repayEnabled: true,
211
+ repayEnabled: isEnabled,
212
212
  subId1: Number(subId),
213
213
  mergeWithId: isEOA ? enums_1.Strategies.Identifiers.EoaBoost : enums_1.Strategies.Identifiers.Boost,
214
214
  subHashRepay: subHash,
@@ -221,7 +221,6 @@ var Bundles;
221
221
  MainnetIds[MainnetIds["COMP_V3_EOA_REPAY_ON_PRICE"] = 49] = "COMP_V3_EOA_REPAY_ON_PRICE";
222
222
  MainnetIds[MainnetIds["COMP_V3_EOA_BOOST_ON_PRICE"] = 50] = "COMP_V3_EOA_BOOST_ON_PRICE";
223
223
  MainnetIds[MainnetIds["COMP_V3_EOA_CLOSE"] = 51] = "COMP_V3_EOA_CLOSE";
224
- // TODO -> Watch out for Liquity V2 Strategy deploy, should change IDs or here or there !!!
225
224
  MainnetIds[MainnetIds["AAVE_V3_EOA_REPAY"] = 52] = "AAVE_V3_EOA_REPAY";
226
225
  MainnetIds[MainnetIds["AAVE_V3_EOA_BOOST"] = 53] = "AAVE_V3_EOA_BOOST";
227
226
  MainnetIds[MainnetIds["AAVE_V3_EOA_REPAY_ON_PRICE"] = 54] = "AAVE_V3_EOA_REPAY_ON_PRICE";
@@ -179,7 +179,7 @@ function parseAaveV3LeverageManagement(position, parseData) {
179
179
  _position.specific = {
180
180
  triggerRepayRatio: triggerData.ratio,
181
181
  targetRepayRatio: subData.targetRatio,
182
- repayEnabled: true,
182
+ repayEnabled: isEnabled,
183
183
  subId1: Number(subId),
184
184
  mergeWithId: isEOA ? Strategies.Identifiers.EoaBoost : Strategies.Identifiers.Boost,
185
185
  subHashRepay: subHash,
@@ -218,7 +218,6 @@ export var Bundles;
218
218
  MainnetIds[MainnetIds["COMP_V3_EOA_REPAY_ON_PRICE"] = 49] = "COMP_V3_EOA_REPAY_ON_PRICE";
219
219
  MainnetIds[MainnetIds["COMP_V3_EOA_BOOST_ON_PRICE"] = 50] = "COMP_V3_EOA_BOOST_ON_PRICE";
220
220
  MainnetIds[MainnetIds["COMP_V3_EOA_CLOSE"] = 51] = "COMP_V3_EOA_CLOSE";
221
- // TODO -> Watch out for Liquity V2 Strategy deploy, should change IDs or here or there !!!
222
221
  MainnetIds[MainnetIds["AAVE_V3_EOA_REPAY"] = 52] = "AAVE_V3_EOA_REPAY";
223
222
  MainnetIds[MainnetIds["AAVE_V3_EOA_BOOST"] = 53] = "AAVE_V3_EOA_BOOST";
224
223
  MainnetIds[MainnetIds["AAVE_V3_EOA_REPAY_ON_PRICE"] = 54] = "AAVE_V3_EOA_REPAY_ON_PRICE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/automation-sdk",
3
- "version": "3.3.2-dev.9",
3
+ "version": "3.3.2-npm-workflow-dev",
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": "1.3.6-dev.3",
26
+ "@defisaver/sdk": "^1.3.9",
27
27
  "@defisaver/tokens": "^1.6.19",
28
28
  "@ethersproject/address": "^5.0.10",
29
29
  "@ethersproject/solidity": "^5.0.9",
@@ -254,7 +254,7 @@ function parseAaveV3LeverageManagement(position: Position.Automated, parseData:
254
254
  _position.specific = {
255
255
  triggerRepayRatio: triggerData.ratio,
256
256
  targetRepayRatio: subData.targetRatio,
257
- repayEnabled: true,
257
+ repayEnabled: isEnabled,
258
258
  subId1: Number(subId),
259
259
  mergeWithId: isEOA ? Strategies.Identifiers.EoaBoost : Strategies.Identifiers.Boost,
260
260
  subHashRepay: subHash,
@@ -213,7 +213,6 @@ export namespace Bundles {
213
213
  COMP_V3_EOA_REPAY_ON_PRICE = 49,
214
214
  COMP_V3_EOA_BOOST_ON_PRICE = 50,
215
215
  COMP_V3_EOA_CLOSE = 51,
216
- // TODO -> Watch out for Liquity V2 Strategy deploy, should change IDs or here or there !!!
217
216
  AAVE_V3_EOA_REPAY = 52,
218
217
  AAVE_V3_EOA_BOOST = 53,
219
218
  AAVE_V3_EOA_REPAY_ON_PRICE = 54,
@@ -124,26 +124,6 @@ export declare namespace Position {
124
124
  mergeWithId?: Strategies.Identifiers,
125
125
  mergeId?: Strategies.Identifiers
126
126
  }
127
- // TODO -> Prob should be better to type it something like this
128
- // type RatioProtection =
129
- // | (Base & {
130
- // triggerRepayRatio: number
131
- // targetRepayRatio: number
132
- // repayEnabled: boolean
133
-
134
- // triggerBoostRatio?: never
135
- // targetBoostRatio?: never
136
- // boostEnabled?: never
137
- // })
138
- // | (Base & {
139
- // triggerBoostRatio: number
140
- // targetBoostRatio: number
141
- // boostEnabled: boolean
142
-
143
- // triggerRepayRatio?: never
144
- // targetRepayRatio?: never
145
- // repayEnabled?: never
146
- // });
147
127
  interface RatioProtection extends Base {
148
128
  triggerRepayRatio?: number,
149
129
  targetRepayRatio?: number,