@morpho-org/blue-sdk 2.0.0 → 2.1.0
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/lib/constants.d.ts +0 -9
- package/lib/constants.js +1 -10
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const LIQUIDATION_CURSOR = 300000000000000000n;
|
|
|
6
6
|
* The maximum liquidation incentive factor. Hardcoded to 115%.
|
|
7
7
|
*/
|
|
8
8
|
export declare const MAX_LIQUIDATION_INCENTIVE_FACTOR = 1150000000000000000n;
|
|
9
|
-
export declare const ORACLE_PRICE_OFFSET = 36;
|
|
10
9
|
/**
|
|
11
10
|
* The scale of the oracle price. Hardcoded to 1e36.
|
|
12
11
|
*/
|
|
@@ -15,14 +14,6 @@ export declare const ORACLE_PRICE_SCALE = 1000000000000000000000000000000000000n
|
|
|
15
14
|
* The default slippage tolerance used in the SDK. Hardcoded to 0.03%.
|
|
16
15
|
*/
|
|
17
16
|
export declare const DEFAULT_SLIPPAGE_TOLERANCE = 300000000000000n;
|
|
18
|
-
/**
|
|
19
|
-
* The default withdrawal target utilization used by the shared liquidity algorithm. Hardcoded to 92%.
|
|
20
|
-
*/
|
|
21
|
-
export declare const DEFAULT_WITHDRAWAL_TARGET_UTILIZATION = 920000000000000000n;
|
|
22
|
-
/**
|
|
23
|
-
* The default supply target utilization used by the shared liquidity algorithm. Hardcoded to 90.5%.
|
|
24
|
-
*/
|
|
25
|
-
export declare const DEFAULT_SUPPLY_TARGET_UTILIZATION = 905000000000000000n;
|
|
26
17
|
/**
|
|
27
18
|
* The number of seconds in a year.
|
|
28
19
|
*/
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SECONDS_PER_YEAR = exports.
|
|
3
|
+
exports.SECONDS_PER_YEAR = exports.DEFAULT_SLIPPAGE_TOLERANCE = exports.ORACLE_PRICE_SCALE = exports.MAX_LIQUIDATION_INCENTIVE_FACTOR = exports.LIQUIDATION_CURSOR = void 0;
|
|
4
4
|
const morpho_ts_1 = require("@morpho-org/morpho-ts");
|
|
5
5
|
/**
|
|
6
6
|
* The liquidation cursor used to calculate the liquidation incentive. Hardcoded to 30%.
|
|
@@ -10,7 +10,6 @@ exports.LIQUIDATION_CURSOR = 300000000000000000n;
|
|
|
10
10
|
* The maximum liquidation incentive factor. Hardcoded to 115%.
|
|
11
11
|
*/
|
|
12
12
|
exports.MAX_LIQUIDATION_INCENTIVE_FACTOR = 1150000000000000000n;
|
|
13
|
-
exports.ORACLE_PRICE_OFFSET = 36;
|
|
14
13
|
/**
|
|
15
14
|
* The scale of the oracle price. Hardcoded to 1e36.
|
|
16
15
|
*/
|
|
@@ -19,14 +18,6 @@ exports.ORACLE_PRICE_SCALE = 1000000000000000000000000000000000000n;
|
|
|
19
18
|
* The default slippage tolerance used in the SDK. Hardcoded to 0.03%.
|
|
20
19
|
*/
|
|
21
20
|
exports.DEFAULT_SLIPPAGE_TOLERANCE = 300000000000000n;
|
|
22
|
-
/**
|
|
23
|
-
* The default withdrawal target utilization used by the shared liquidity algorithm. Hardcoded to 92%.
|
|
24
|
-
*/
|
|
25
|
-
exports.DEFAULT_WITHDRAWAL_TARGET_UTILIZATION = 920000000000000000n;
|
|
26
|
-
/**
|
|
27
|
-
* The default supply target utilization used by the shared liquidity algorithm. Hardcoded to 90.5%.
|
|
28
|
-
*/
|
|
29
|
-
exports.DEFAULT_SUPPLY_TARGET_UTILIZATION = 905000000000000000n;
|
|
30
21
|
/**
|
|
31
22
|
* The number of seconds in a year.
|
|
32
23
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
3
|
"description": "Framework-agnostic package that defines Morpho-related entity classes (such as `Market`, `Token`, `Vault`).",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|