@defisaver/automation-sdk 1.2.33 → 2.0.1

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.
@@ -33,8 +33,8 @@ export declare namespace AaveSubscriptionsV2 {
33
33
  ]
34
34
  | {
35
35
  user: string;
36
- minRatio: number | string | BN;
37
- maxRatio: number | string | BN;
36
+ triggerRepayRatio: number | string | BN;
37
+ triggerBoostRatio: number | string | BN;
38
38
  optimalRatioBoost: number | string | BN;
39
39
  optimalRatioRepay: number | string | BN;
40
40
  boostEnabled: boolean;
@@ -50,8 +50,8 @@ export declare namespace AaveSubscriptionsV2 {
50
50
  ];
51
51
  export type AaveHolderStructOutputStruct = {
52
52
  user: string;
53
- minRatio: string;
54
- maxRatio: string;
53
+ triggerRepayRatio: string;
54
+ triggerBoostRatio: string;
55
55
  optimalRatioBoost: string;
56
56
  optimalRatioRepay: string;
57
57
  boostEnabled: boolean;
@@ -124,8 +124,8 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
124
124
  setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
125
125
 
126
126
  subscribe(
127
- _minRatio: number | string | BN,
128
- _maxRatio: number | string | BN,
127
+ _triggerRepayRatio: number | string | BN,
128
+ _triggerBoostRatio: number | string | BN,
129
129
  _optimalBoost: number | string | BN,
130
130
  _optimalRepay: number | string | BN,
131
131
  _boostEnabled: boolean
@@ -136,8 +136,8 @@ export interface Legacy_AaveV2Subscriptions extends BaseContract {
136
136
  ): NonPayableTransactionObject<
137
137
  [string, string, string, string, string, boolean] & {
138
138
  user: string;
139
- minRatio: string;
140
- maxRatio: string;
139
+ triggerRepayRatio: string;
140
+ triggerBoostRatio: string;
141
141
  optimalRatioBoost: string;
142
142
  optimalRatioRepay: string;
143
143
  boostEnabled: boolean;
@@ -33,8 +33,8 @@ export declare namespace CompoundSubscriptions {
33
33
  ]
34
34
  | {
35
35
  user: string;
36
- minRatio: number | string | BN;
37
- maxRatio: number | string | BN;
36
+ triggerRepayRatio: number | string | BN;
37
+ triggerBoostRatio: number | string | BN;
38
38
  optimalRatioBoost: number | string | BN;
39
39
  optimalRatioRepay: number | string | BN;
40
40
  boostEnabled: boolean;
@@ -50,8 +50,8 @@ export declare namespace CompoundSubscriptions {
50
50
  ];
51
51
  export type CompoundHolderStructOutputStruct = {
52
52
  user: string;
53
- minRatio: string;
54
- maxRatio: string;
53
+ triggerRepayRatio: string;
54
+ triggerBoostRatio: string;
55
55
  optimalRatioBoost: string;
56
56
  optimalRatioRepay: string;
57
57
  boostEnabled: boolean;
@@ -122,8 +122,8 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
122
122
  setOwnerByAdmin(_owner: string): NonPayableTransactionObject<void>;
123
123
 
124
124
  subscribe(
125
- _minRatio: number | string | BN,
126
- _maxRatio: number | string | BN,
125
+ _triggerRepayRatio: number | string | BN,
126
+ _triggerBoostRatio: number | string | BN,
127
127
  _optimalBoost: number | string | BN,
128
128
  _optimalRepay: number | string | BN,
129
129
  _boostEnabled: boolean
@@ -134,8 +134,8 @@ export interface Legacy_CompoundV2Subscriptions extends BaseContract {
134
134
  ): NonPayableTransactionObject<
135
135
  [string, string, string, string, string, boolean] & {
136
136
  user: string;
137
- minRatio: string;
138
- maxRatio: string;
137
+ triggerRepayRatio: string;
138
+ triggerBoostRatio: string;
139
139
  optimalRatioBoost: string;
140
140
  optimalRatioRepay: string;
141
141
  boostEnabled: boolean;
@@ -67,8 +67,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
67
67
  getSubscribers(): NonPayableTransactionObject<
68
68
  [string, string, string, string, string, string, boolean, boolean] &
69
69
  {
70
- minRatio: string;
71
- maxRatio: string;
70
+ triggerRepayRatio: string;
71
+ triggerBoostRatio: string;
72
72
  optimalRatioBoost: string;
73
73
  optimalRatioRepay: string;
74
74
  owner: string;
@@ -90,8 +90,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
90
90
  [
91
91
  boolean,
92
92
  [string, string, string, string, string, string, boolean, boolean] & {
93
- minRatio: string;
94
- maxRatio: string;
93
+ triggerRepayRatio: string;
94
+ triggerBoostRatio: string;
95
95
  optimalRatioBoost: string;
96
96
  optimalRatioRepay: string;
97
97
  owner: string;
@@ -152,8 +152,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
152
152
  arg0: number | string | BN
153
153
  ): NonPayableTransactionObject<
154
154
  [string, string, string, string, string, string, boolean, boolean] & {
155
- minRatio: string;
156
- maxRatio: string;
155
+ triggerRepayRatio: string;
156
+ triggerBoostRatio: string;
157
157
  optimalRatioBoost: string;
158
158
  optimalRatioRepay: string;
159
159
  owner: string;
@@ -165,8 +165,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
165
165
 
166
166
  subscribe(
167
167
  _cdpId: number | string | BN,
168
- _minRatio: number | string | BN,
169
- _maxRatio: number | string | BN,
168
+ _triggerRepayRatio: number | string | BN,
169
+ _triggerBoostRatio: number | string | BN,
170
170
  _optimalBoost: number | string | BN,
171
171
  _optimalRepay: number | string | BN,
172
172
  _boostEnabled: boolean,
@@ -199,8 +199,8 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
199
199
  ): NonPayableTransactionObject<
200
200
  [string, string, string, string, string, string, boolean, boolean] &
201
201
  {
202
- minRatio: string;
203
- maxRatio: string;
202
+ triggerRepayRatio: string;
203
+ triggerBoostRatio: string;
204
204
  optimalRatioBoost: string;
205
205
  optimalRatioRepay: string;
206
206
  owner: string;
@@ -277,7 +277,7 @@ export interface Legacy_MakerSubscriptions extends BaseContract {
277
277
 
278
278
  saverProxy(): NonPayableTransactionObject<string>;
279
279
 
280
- changeMinRatios(
280
+ changetriggerRepayRatios(
281
281
  _ilk: string | number[],
282
282
  _newRatio: number | string | BN
283
283
  ): NonPayableTransactionObject<void>;
@@ -119,11 +119,11 @@ export declare namespace Position {
119
119
  mergeWithSameId?: boolean
120
120
  }
121
121
  interface RatioProtection extends Base {
122
- minRatio?: number,
123
- minOptimalRatio?: number,
122
+ triggerRepayRatio?: number,
123
+ targetRepayRatio?: number,
124
124
  repayEnabled?: boolean,
125
- maxRatio?: number,
126
- maxOptimalRatio?: number,
125
+ triggerBoostRatio?: number,
126
+ targetBoostRatio?: number,
127
127
  boostEnabled?: boolean,
128
128
  }
129
129
  interface CloseOnPrice extends Base {