@morpho-org/blue-sdk 4.8.0 → 4.8.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.
@@ -18,6 +18,6 @@ export declare class VaultToken extends WrappedToken implements IVaultToken {
18
18
  */
19
19
  totalAssets: bigint;
20
20
  constructor(config: IVaultConfig, { totalAssets, totalSupply }: IVaultToken);
21
- protected _wrap(amount: bigint, rounding?: RoundingDirection): bigint;
22
- protected _unwrap(amount: bigint, rounding?: RoundingDirection): bigint;
21
+ protected _wrap(amount: bigint, rounding: RoundingDirection): bigint;
22
+ protected _unwrap(amount: bigint, rounding: RoundingDirection): bigint;
23
23
  }
@@ -95,10 +95,10 @@ class Vault extends index_js_3.VaultToken {
95
95
  get totalInterest() {
96
96
  return index_js_2.MathLib.zeroFloorSub(this.totalAssets, this.lastTotalAssets);
97
97
  }
98
- toAssets(shares, rounding) {
98
+ toAssets(shares, rounding = "Down") {
99
99
  return this._unwrap(shares, rounding);
100
100
  }
101
- toShares(assets, rounding) {
101
+ toShares(assets, rounding = "Up") {
102
102
  return this._wrap(assets, rounding);
103
103
  }
104
104
  }
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": "4.8.0",
4
+ "version": "4.8.1",
5
5
  "author": "Morpho Association <contact@morpho.org>",
6
6
  "contributors": [
7
7
  "Rubilmax <rmilon@gmail.com>"