@ember-finance/sdk 2.24.0 → 2.25.0

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.
@@ -47,13 +47,15 @@ export declare class SuiAtomicLiquidityReader {
47
47
  * strategy.
48
48
  * @param vaultId Object id of the atomic vault
49
49
  * @returns The active strategy, idle collateral and strategy assets, in collateral
50
- * base units. `suilendMarketId` is set when the strategy is Suilend.
50
+ * base units. `suilendMarketId` and `suilendPoolType` (the market's `P`) are set when
51
+ * the strategy is Suilend.
51
52
  */
52
53
  getStrategyState(vaultId: string): Promise<{
53
54
  strategy: SuiAtomicStrategy;
54
55
  idleCollateral: bigint;
55
56
  strategyAssets: bigint;
56
57
  suilendMarketId?: string;
58
+ suilendPoolType?: string;
57
59
  }>;
58
60
  /**
59
61
  * Live quote for the EmberShare swap-with-holdback "instant withdraw" on Sui.
@@ -116,7 +116,8 @@ export class SuiAtomicLiquidityReader {
116
116
  * strategy.
117
117
  * @param vaultId Object id of the atomic vault
118
118
  * @returns The active strategy, idle collateral and strategy assets, in collateral
119
- * base units. `suilendMarketId` is set when the strategy is Suilend.
119
+ * base units. `suilendMarketId` and `suilendPoolType` (the market's `P`) are set when
120
+ * the strategy is Suilend.
120
121
  */
121
122
  async getStrategyState(vaultId) {
122
123
  const res = await this.suiClient.core.getObject({
@@ -174,7 +175,8 @@ export class SuiAtomicLiquidityReader {
174
175
  strategy,
175
176
  idleCollateral,
176
177
  strategyAssets: BigInt(bcs.u64().parse(returned)),
177
- suilendMarketId
178
+ suilendMarketId,
179
+ suilendPoolType: poolType
178
180
  };
179
181
  }
180
182
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ember-finance/sdk",
3
3
  "description": "Ember Protocol SDK",
4
- "version": "2.24.0",
4
+ "version": "2.25.0",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",