@morpho-org/blue-sdk 5.2.0 → 5.2.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.js +2 -1
- package/lib/vault/Vault.d.ts +6 -0
- package/package.json +1 -1
package/lib/market/Market.js
CHANGED
|
@@ -57,7 +57,8 @@ class Market {
|
|
|
57
57
|
*/
|
|
58
58
|
rateAtTarget;
|
|
59
59
|
constructor({ params, totalSupplyAssets, totalBorrowAssets, totalSupplyShares, totalBorrowShares, lastUpdate, fee, price, rateAtTarget, }) {
|
|
60
|
-
this.params =
|
|
60
|
+
this.params =
|
|
61
|
+
params instanceof MarketParams_js_1.MarketParams ? params : new MarketParams_js_1.MarketParams(params);
|
|
61
62
|
this.totalSupplyAssets = totalSupplyAssets;
|
|
62
63
|
this.totalBorrowAssets = totalBorrowAssets;
|
|
63
64
|
this.totalSupplyShares = totalSupplyShares;
|
package/lib/vault/Vault.d.ts
CHANGED
|
@@ -129,6 +129,12 @@ export interface CollateralAllocation {
|
|
|
129
129
|
export interface IAccrualVault extends Omit<IVault, "withdrawQueue" | "totalAssets"> {
|
|
130
130
|
}
|
|
131
131
|
export declare class AccrualVault extends Vault implements IAccrualVault {
|
|
132
|
+
/**
|
|
133
|
+
* @inheritdoc
|
|
134
|
+
* Reflects the sum of assets of the vault's allocations.
|
|
135
|
+
* Only includes virtually accrued interest if the vault's allocations include virtually accrued interest.
|
|
136
|
+
*/
|
|
137
|
+
totalAssets: bigint;
|
|
132
138
|
/**
|
|
133
139
|
* The allocation of the vault on each market enabled.
|
|
134
140
|
*/
|
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": "5.2.
|
|
4
|
+
"version": "5.2.2",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|