@drift-labs/vaults-sdk 0.1.70 → 0.1.71

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.
@@ -57,8 +57,6 @@ export const managerUpdateVault = async (program: Command, cmdOpts: OptionValues
57
57
  profitShareNumber = profitShare * PERCENTAGE_PRECISION.toNumber() / 100.0;
58
58
  }
59
59
 
60
- const permissioned: boolean | null = (cmdOpts.permissioned === null || cmdOpts.permissioned === undefined) ? null : cmdOpts.permissioned;
61
-
62
60
  let minDepositAmount = cmdOpts.minDepositAmount;
63
61
  let minDepositAmountBN: BN | null = null;
64
62
  if (minDepositAmount !== undefined && minDepositAmount !== null) {
@@ -87,8 +85,9 @@ export const managerUpdateVault = async (program: Command, cmdOpts: OptionValues
87
85
  const profitShareAfter = profitShareNumber !== null ? `${profitShareNumber / PERCENTAGE_PRECISION.toNumber() * 100.0}%` : 'unchanged';
88
86
  console.log(` ProfitShare: ${profitShareBefore}% -> ${profitShareAfter}`);
89
87
 
88
+ const permissioned: boolean | null = (cmdOpts.permissioned === null || cmdOpts.permissioned === undefined) ? null : JSON.parse(cmdOpts.permissioned);
90
89
  const permissionedBefore = vault.permissioned;
91
- const permissionedAfter = permissioned !== null ? permissioned : 'unchanged ';
90
+ const permissionedAfter = permissioned !== null ? permissioned : 'unchanged';
92
91
  console.log(` Permissioned: ${permissionedBefore} -> ${permissionedAfter}`);
93
92
 
94
93
  const readline = require('readline').createInterface({
@@ -117,7 +116,7 @@ export const managerUpdateVault = async (program: Command, cmdOpts: OptionValues
117
116
  managementFee: managementFeeBN,
118
117
  profitShare: profitShareNumber,
119
118
  hurdleRate: null,
120
- permissioned
119
+ permissioned,
121
120
  };
122
121
 
123
122
  const tx = await driftVault.managerUpdateVault(vaultAddress, newParams);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/vaults-sdk",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "directories": {