@morpho-org/blue-sdk 1.7.4 → 1.7.5

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.
@@ -1,4 +1,4 @@
1
- import { Market } from "../market";
1
+ import { Market, MaxBorrowOptions, MaxWithdrawCollateralOptions } from "../market";
2
2
  import { Address, BigIntish, MarketId } from "../types";
3
3
  export interface InputPosition {
4
4
  user: Address;
@@ -119,5 +119,8 @@ export declare class AccrualPosition extends Position implements InputAccrualPos
119
119
  shares: bigint;
120
120
  };
121
121
  getRepayCapacityLimit(loanTokenBalance: bigint): import("../market").CapacityLimit;
122
- getMaxCapacities(loanTokenBalance: bigint, collateralTokenBalance: bigint): import("../market").MaxPositionCapacities;
122
+ getMaxCapacities(loanTokenBalance: bigint, collateralTokenBalance: bigint, options?: {
123
+ borrow?: MaxBorrowOptions;
124
+ withdrawCollateral?: MaxWithdrawCollateralOptions;
125
+ }): import("../market").MaxPositionCapacities;
123
126
  }
@@ -196,8 +196,8 @@ class AccrualPosition extends Position {
196
196
  getRepayCapacityLimit(loanTokenBalance) {
197
197
  return this.market.getRepayCapacityLimit(this.borrowShares, loanTokenBalance);
198
198
  }
199
- getMaxCapacities(loanTokenBalance, collateralTokenBalance) {
200
- return this.market.getMaxCapacities(this, loanTokenBalance, collateralTokenBalance);
199
+ getMaxCapacities(loanTokenBalance, collateralTokenBalance, options) {
200
+ return this.market.getMaxCapacities(this, loanTokenBalance, collateralTokenBalance, options);
201
201
  }
202
202
  }
203
203
  exports.AccrualPosition = AccrualPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morpho-org/blue-sdk",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "author": "Morpho Association <contact@morpho.org>",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
@@ -16,8 +16,8 @@
16
16
  "keccak256": "^1.0.6"
17
17
  },
18
18
  "devDependencies": {
19
- "@morpho-org/morpho-test": "^1.7.4",
20
- "@morpho-org/morpho-ts": "^1.7.4",
19
+ "@morpho-org/morpho-test": "^1.7.5",
20
+ "@morpho-org/morpho-ts": "^1.7.5",
21
21
  "@types/jest": "^29.5.12",
22
22
  "@types/node": "^22.1.0",
23
23
  "jest": "^29.7.0",
@@ -25,7 +25,7 @@
25
25
  "typescript": "^5.4.5"
26
26
  },
27
27
  "peerDependencies": {
28
- "@morpho-org/morpho-ts": "^1.7.4"
28
+ "@morpho-org/morpho-ts": "^1.7.5"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -49,5 +49,5 @@
49
49
  ],
50
50
  "preset": "ts-jest"
51
51
  },
52
- "gitHead": "09517429d483381a758182323547e8a6fe75f2c9"
52
+ "gitHead": "6c51df2e43f997e52ae7a62b9778e7cfbdf18971"
53
53
  }