@haven-fi/solauto-sdk 1.0.621 → 1.0.622

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.
@@ -261,6 +261,7 @@ class SolautoMarginfiClient extends solautoClient_1.SolautoClient {
261
261
  (postSwapRebalance &&
262
262
  data.rebalanceType === generated_1.SolautoRebalanceType.FLSwapThenRebalance);
263
263
  const addAuthorityTas = this.selfManaged || data.values.tokenBalanceChange !== undefined;
264
+ console.log("TARGET LIQ UTILIZATION RATE:", data.targetLiqUtilizationRateBps);
264
265
  return (0, generated_1.marginfiRebalance)(this.umi, {
265
266
  signer: this.signer,
266
267
  marginfiProgram: (0, umi_1.publicKey)(marginfi_sdk_1.MARGINFI_PROGRAM_ID),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.621",
3
+ "version": "1.0.622",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -391,6 +391,10 @@ export class SolautoMarginfiClient extends SolautoClient {
391
391
  const addAuthorityTas =
392
392
  this.selfManaged || data.values.tokenBalanceChange !== undefined;
393
393
 
394
+ console.log(
395
+ "TARGET LIQ UTILIZATION RATE:",
396
+ data.targetLiqUtilizationRateBps
397
+ );
394
398
  return marginfiRebalance(this.umi, {
395
399
  signer: this.signer,
396
400
  marginfiProgram: publicKey(MARGINFI_PROGRAM_ID),
@@ -425,9 +429,7 @@ export class SolautoMarginfiClient extends SolautoClient {
425
429
  supplyPriceOracle: publicKey(this.supplyPriceOracle),
426
430
  positionSupplyTa: publicKey(this.positionSupplyTa),
427
431
  authoritySupplyTa: addAuthorityTas
428
- ? publicKey(
429
- getTokenAccount(this.authority, this.pos.supplyMint())
430
- )
432
+ ? publicKey(getTokenAccount(this.authority, this.pos.supplyMint()))
431
433
  : undefined,
432
434
  vaultSupplyTa: needSupplyAccounts
433
435
  ? publicKey(this.marginfiSupplyAccounts.liquidityVault)
@@ -439,9 +441,7 @@ export class SolautoMarginfiClient extends SolautoClient {
439
441
  debtPriceOracle: publicKey(this.debtPriceOracle),
440
442
  positionDebtTa: publicKey(this.positionDebtTa),
441
443
  authorityDebtTa: addAuthorityTas
442
- ? publicKey(
443
- getTokenAccount(this.authority, this.pos.debtMint())
444
- )
444
+ ? publicKey(getTokenAccount(this.authority, this.pos.debtMint()))
445
445
  : undefined,
446
446
  vaultDebtTa: needDebtAccounts
447
447
  ? publicKey(this.marginfiDebtAccounts.liquidityVault)