@defisaver/automation-sdk 3.3.0 → 3.3.2-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.
- package/cjs/constants/index.js +5 -0
- package/cjs/services/strategiesService.js +18 -2
- package/cjs/services/strategySubService.d.ts +1 -0
- package/cjs/services/strategySubService.js +7 -0
- package/cjs/services/subDataService.d.ts +8 -0
- package/cjs/services/subDataService.js +25 -1
- package/cjs/services/triggerService.d.ts +9 -0
- package/cjs/services/triggerService.js +17 -1
- package/cjs/types/enums.d.ts +4 -2
- package/cjs/types/enums.js +2 -0
- package/cjs/types/index.d.ts +8 -1
- package/esm/constants/index.js +5 -0
- package/esm/services/strategiesService.js +18 -2
- package/esm/services/strategySubService.d.ts +1 -0
- package/esm/services/strategySubService.js +7 -0
- package/esm/services/subDataService.d.ts +8 -0
- package/esm/services/subDataService.js +24 -0
- package/esm/services/triggerService.d.ts +9 -0
- package/esm/services/triggerService.js +16 -0
- package/esm/types/enums.d.ts +4 -2
- package/esm/types/enums.js +2 -0
- package/esm/types/index.d.ts +8 -1
- package/package.json +2 -2
- package/src/constants/index.ts +5 -0
- package/src/services/strategiesService.ts +27 -3
- package/src/services/strategySubService.ts +19 -0
- package/src/services/subDataService.ts +31 -0
- package/src/services/triggerService.ts +22 -0
- package/src/types/enums.ts +2 -0
- package/src/types/index.ts +9 -0
- package/umd/index.js +34219 -0
package/src/types/enums.ts
CHANGED
|
@@ -96,6 +96,7 @@ export namespace Strategies {
|
|
|
96
96
|
LIQUITY_DEBT_IN_FRONT_REPAY = 75,
|
|
97
97
|
CURVEUSD_PAYBACK = 92,
|
|
98
98
|
LIQUITY_V2_PAYBACK = 113,
|
|
99
|
+
LIQUITY_V2_INTEREST_RATE_ADJUSTMENT = 124,
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
export enum OptimismIds {
|
|
@@ -143,6 +144,7 @@ export namespace Strategies {
|
|
|
143
144
|
RepayOnPrice = 'repay-on-price',
|
|
144
145
|
EoaBoostOnPrice = 'eoa-boost-on-price',
|
|
145
146
|
EoaRepayOnPrice = 'eoa-repay-on-price',
|
|
147
|
+
InterestRateAdjustment = 'interest-rate-adjustment',
|
|
146
148
|
}
|
|
147
149
|
export enum IdOverrides {
|
|
148
150
|
TakeProfit = 'take-profit',
|
package/src/types/index.ts
CHANGED
|
@@ -190,6 +190,14 @@ export declare namespace Position {
|
|
|
190
190
|
triggerRatio: number;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
interface InterestRateAdjustmentLiquityV2 extends Base {
|
|
194
|
+
market: EthereumAddress,
|
|
195
|
+
troveId: string,
|
|
196
|
+
criticalDebtInFrontLimit: string,
|
|
197
|
+
nonCriticalDebtInFrontLimit: string,
|
|
198
|
+
interestRateChange: string,
|
|
199
|
+
}
|
|
200
|
+
|
|
193
201
|
interface TrailingStop extends Base {
|
|
194
202
|
roundId: number,
|
|
195
203
|
triggerPercentage: number,
|
|
@@ -239,6 +247,7 @@ export declare namespace Position {
|
|
|
239
247
|
| Specific.BoostOnPriceMorpho
|
|
240
248
|
| Specific.BoostOnPriceLiquityV2
|
|
241
249
|
| Specific.PaybackLiquityV2
|
|
250
|
+
| Specific.InterestRateAdjustmentLiquityV2
|
|
242
251
|
| Specific.CompoundV3LeverageManagementOnPrice
|
|
243
252
|
| Specific.CompoundV3CloseOnPrice;
|
|
244
253
|
|