@defisaver/sdk 1.3.18 → 1.3.21
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/src/actions/checkers/SparkRatioCheckAction.js +1 -1
- package/esm/src/actions/checkers/SparkTargetRatioCheck.d.ts +14 -0
- package/esm/src/actions/checkers/SparkTargetRatioCheck.js +20 -0
- package/esm/src/actions/checkers/index.d.ts +1 -0
- package/esm/src/actions/checkers/index.js +1 -0
- package/package.json +1 -1
- package/src/actions/checkers/SparkRatioCheckAction.ts +1 -1
- package/src/actions/checkers/SparkTargetRatioCheck.ts +23 -0
- package/src/actions/checkers/index.ts +2 -1
- package/umd/index.js +592 -561
|
@@ -11,7 +11,7 @@ export class SparkRatioCheckAction extends Action {
|
|
|
11
11
|
* @param targetRatio The ratio user want to be at
|
|
12
12
|
*/
|
|
13
13
|
constructor(ratioState, targetRatio) {
|
|
14
|
-
super('SparkRatioCheck', getAddr('
|
|
14
|
+
super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
15
15
|
this.mappableArgs = [
|
|
16
16
|
this.args[0],
|
|
17
17
|
this.args[1],
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
5
|
+
*
|
|
6
|
+
* @category Checkers
|
|
7
|
+
*/
|
|
8
|
+
export declare class SparkTargetRatioCheck extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param targetRatio The ratio user want to be at
|
|
11
|
+
* @param market Address of the market
|
|
12
|
+
*/
|
|
13
|
+
constructor(targetRatio: uint256, market: EthAddress);
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
5
|
+
*
|
|
6
|
+
* @category Checkers
|
|
7
|
+
*/
|
|
8
|
+
export class SparkTargetRatioCheck extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param targetRatio The ratio user want to be at
|
|
11
|
+
* @param market Address of the market
|
|
12
|
+
*/
|
|
13
|
+
constructor(targetRatio, market) {
|
|
14
|
+
super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
15
|
+
this.mappableArgs = [
|
|
16
|
+
this.args[0],
|
|
17
|
+
this.args[1],
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export class SparkRatioCheckAction extends Action {
|
|
|
13
13
|
* @param targetRatio The ratio user want to be at
|
|
14
14
|
*/
|
|
15
15
|
constructor(ratioState:uint8, targetRatio:uint256) {
|
|
16
|
-
super('SparkRatioCheck', getAddr('
|
|
16
|
+
super('SparkRatioCheck', getAddr('Empty'), ['uint8', 'uint256'], [ratioState, targetRatio]);
|
|
17
17
|
|
|
18
18
|
this.mappableArgs = [
|
|
19
19
|
this.args[0],
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { EthAddress, uint256 } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* SparkTargetRatioCheck - SparkRatioCheckAction - Checks spark ratio for users proxy position and reverts if faulty
|
|
7
|
+
*
|
|
8
|
+
* @category Checkers
|
|
9
|
+
*/
|
|
10
|
+
export class SparkTargetRatioCheck extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param targetRatio The ratio user want to be at
|
|
13
|
+
* @param market Address of the market
|
|
14
|
+
*/
|
|
15
|
+
constructor(targetRatio: uint256, market: EthAddress) {
|
|
16
|
+
super('SparkTargetRatioCheck', getAddr('Empty'), ['uint256', 'address'], [targetRatio, market]);
|
|
17
|
+
|
|
18
|
+
this.mappableArgs = [
|
|
19
|
+
this.args[0],
|
|
20
|
+
this.args[1],
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -14,4 +14,5 @@ export * from './MorphoBlueTargetRatioCheckAction';
|
|
|
14
14
|
export * from './LiquityV2RatioCheckAction';
|
|
15
15
|
export * from './LiquityV2TargetRatioCheckAction';
|
|
16
16
|
export * from './LiquityV2NewInterestRateCheckerAction';
|
|
17
|
-
export * from './FluidRatioCheckAction';
|
|
17
|
+
export * from './FluidRatioCheckAction';
|
|
18
|
+
export * from './SparkTargetRatioCheck';
|