@drift-labs/vaults-sdk 0.9.165 → 0.9.166
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/cli/cli.ts +1 -1
- package/cli/commands/managerUpdateFees.ts +1 -2
- package/package.json +2 -2
package/cli/cli.ts
CHANGED
|
@@ -219,7 +219,7 @@ program
|
|
|
219
219
|
.command("manager-update-fees")
|
|
220
220
|
.description("Update vault fees for a manager")
|
|
221
221
|
.addOption(new Option("--vault-address <address>", "Address of the vault to update").makeOptionMandatory(true))
|
|
222
|
-
.option("-t, --timelock-duration <number>", "The
|
|
222
|
+
.option("-t, --timelock-duration <number>", "The timelock before the new fees take effect, in seconds, minimum is max(7 days, 2x redeem period) (default: minimum duration)")
|
|
223
223
|
.option("-m, --management-fee <percent>", "The new management fee percentage")
|
|
224
224
|
.option("-s, --profit-share <percent>", "The new profit share percentage")
|
|
225
225
|
.option("-h, --hurdle-rate <percent>", "The new hurdle rate percentage")
|
|
@@ -24,8 +24,7 @@ export const managerUpdateFees = async (program: Command, cmdOpts: OptionValues)
|
|
|
24
24
|
|
|
25
25
|
const timelockDuration = cmdOpts.timelockDuration;
|
|
26
26
|
let timelockDurationBN: BN | null = null;
|
|
27
|
-
|
|
28
|
-
const minTimelockDurationBN = new BN(Math.max(1 * 60 * 60, vault.redeemPeriod.toNumber()));
|
|
27
|
+
const minTimelockDurationBN = new BN(Math.max(7 * 24 * 60 * 60, vault.redeemPeriod.toNumber() * 2));
|
|
29
28
|
if (timelockDuration !== undefined && timelockDuration !== null) {
|
|
30
29
|
timelockDurationBN = new BN(parseInt(timelockDuration));
|
|
31
30
|
if (timelockDurationBN.lt(minTimelockDurationBN)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drift-labs/vaults-sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.166",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"directories": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@coral-xyz/anchor": "0.29.0",
|
|
30
|
-
"@drift-labs/sdk": "2.141.0-beta.
|
|
30
|
+
"@drift-labs/sdk": "2.141.0-beta.2",
|
|
31
31
|
"@types/bn.js": "5.1.3"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|