@morpho-org/blue-sdk 1.11.0 → 1.11.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.
@@ -193,7 +193,8 @@ export declare class Market implements InputMarket {
193
193
  */
194
194
  getCollateralValue(collateral: bigint): bigint;
195
195
  /**
196
- * Returns the maximum amount of loan assets that can be borrowed given a certain amount of collateral.
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;
@@ -275,7 +275,8 @@ class Market {
275
275
  return MarketUtils_1.MarketUtils.getCollateralValue(collateral, this);
276
276
  }
277
277
  /**
278
- * Returns the maximum amount of loan assets that can be borrowed given a certain amount of collateral.
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.0",
3
+ "version": "1.11.1",
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.0",
20
- "@morpho-org/morpho-ts": "^1.11.0",
20
+ "@morpho-org/morpho-test": "^1.11.1",
21
+ "@morpho-org/morpho-ts": "^1.11.1",
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.0"
45
+ "@morpho-org/morpho-ts": "^1.11.1"
29
46
  },
30
47
  "publishConfig": {
31
48
  "access": "public"
@@ -49,5 +66,5 @@
49
66
  ],
50
67
  "preset": "ts-jest"
51
68
  },
52
- "gitHead": "c5fdf4b7478f0f1077bbb49023b4e40605f0f8c0"
69
+ "gitHead": "415e89c0ffbd7e46d6accf9d01a24adbd370b276"
53
70
  }