@morpho-org/blue-sdk 1.11.0 → 1.11.2
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/market/Market.d.ts +2 -1
- package/lib/market/Market.js +2 -1
- package/package.json +23 -6
package/lib/market/Market.d.ts
CHANGED
|
@@ -193,7 +193,8 @@ export declare class Market implements InputMarket {
|
|
|
193
193
|
*/
|
|
194
194
|
getCollateralValue(collateral: bigint): bigint;
|
|
195
195
|
/**
|
|
196
|
-
* Returns the maximum
|
|
196
|
+
* Returns the maximum debt allowed given a certain amount of collateral.
|
|
197
|
+
* To calculate the amount of loan assets that can be borrowed, use `getMaxBorrowableAssets`.
|
|
197
198
|
* @param collateral The amount of collateral to consider.
|
|
198
199
|
*/
|
|
199
200
|
getMaxBorrowAssets(collateral: bigint, { maxLtv }?: MaxBorrowOptions): bigint;
|
package/lib/market/Market.js
CHANGED
|
@@ -275,7 +275,8 @@ class Market {
|
|
|
275
275
|
return MarketUtils_1.MarketUtils.getCollateralValue(collateral, this);
|
|
276
276
|
}
|
|
277
277
|
/**
|
|
278
|
-
* Returns the maximum
|
|
278
|
+
* Returns the maximum debt allowed given a certain amount of collateral.
|
|
279
|
+
* To calculate the amount of loan assets that can be borrowed, use `getMaxBorrowableAssets`.
|
|
279
280
|
* @param collateral The amount of collateral to consider.
|
|
280
281
|
*/
|
|
281
282
|
getMaxBorrowAssets(collateral, { maxLtv = this.config.lltv } = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/blue-sdk",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"author": "Morpho Association <contact@morpho.org>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -10,22 +10,39 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"prepublish": "yarn build",
|
|
12
12
|
"build": "tsc --build tsconfig.build.json",
|
|
13
|
-
"test": "jest"
|
|
13
|
+
"test-jest": "jest",
|
|
14
|
+
"test-hardhat": "hardhat test"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"keccak256": "^1.0.6"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"@morpho-org/morpho-test": "^1.11.
|
|
20
|
-
"@morpho-org/morpho-ts": "^1.11.
|
|
20
|
+
"@morpho-org/morpho-test": "^1.11.2",
|
|
21
|
+
"@morpho-org/morpho-ts": "^1.11.2",
|
|
22
|
+
"@nomicfoundation/hardhat-ethers": "^3.0.6",
|
|
23
|
+
"@nomicfoundation/hardhat-network-helpers": "^1.0.11",
|
|
24
|
+
"@types/chai": "^4.3.14",
|
|
25
|
+
"@types/chai-as-promised": "^7.1.2",
|
|
21
26
|
"@types/jest": "^29.5.12",
|
|
27
|
+
"@types/mocha": "^10.0.6",
|
|
22
28
|
"@types/node": "^22.1.0",
|
|
29
|
+
"chai": "^4.3.10",
|
|
30
|
+
"chai-as-promised": "^7.1.2",
|
|
31
|
+
"chai-ts": "^0.0.3",
|
|
32
|
+
"dotenv": "^16.4.5",
|
|
33
|
+
"ethers": "^6.13.2",
|
|
34
|
+
"ethers-types": "^3.17.0",
|
|
35
|
+
"hardhat": "^2.22.6",
|
|
36
|
+
"hardhat-deal": "^3.1.0",
|
|
37
|
+
"hardhat-tracer": "^3.1.0",
|
|
23
38
|
"jest": "^29.7.0",
|
|
39
|
+
"mocha": "^10.4.0",
|
|
24
40
|
"ts-jest": "^29.2.4",
|
|
41
|
+
"ts-node": "^10.9.2",
|
|
25
42
|
"typescript": "^5.4.5"
|
|
26
43
|
},
|
|
27
44
|
"peerDependencies": {
|
|
28
|
-
"@morpho-org/morpho-ts": "^1.11.
|
|
45
|
+
"@morpho-org/morpho-ts": "^1.11.2"
|
|
29
46
|
},
|
|
30
47
|
"publishConfig": {
|
|
31
48
|
"access": "public"
|
|
@@ -49,5 +66,5 @@
|
|
|
49
66
|
],
|
|
50
67
|
"preset": "ts-jest"
|
|
51
68
|
},
|
|
52
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "73b7dbbb6d497b9ba99dd35bda24c678c65c13e4"
|
|
53
70
|
}
|