Skip to content

Commit da0e9c7

Browse files
committed
update managerUpdateFees help string
1 parent ec37cb3 commit da0e9c7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ts/sdk/cli/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ program
219219
.command("manager-update-fees")
220220
.description("Update vault fees for a manager")
221221
.addOption(new Option("--vault-address <address>", "Address of the vault to update").makeOptionMandatory(true))
222-
.option("-t, --timelock-duration <number>", "The new timelock duration in seconds, must be at least the greater of 1 day, or the current redeem period (default: minimum duration)")
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)")
223223
.option("-m, --management-fee <percent>", "The new management fee percentage")
224224
.option("-s, --profit-share <percent>", "The new profit share percentage")
225225
.option("-h, --hurdle-rate <percent>", "The new hurdle rate percentage")

ts/sdk/cli/commands/managerUpdateFees.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const managerUpdateFees = async (program: Command, cmdOpts: OptionValues)
2424

2525
const timelockDuration = cmdOpts.timelockDuration;
2626
let timelockDurationBN: BN | null = null;
27-
// const minTimelockDurationBN = new BN(Math.max(1 * 24 * 60 * 60, vault.redeemPeriod.toNumber()));
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));
2928
if (timelockDuration !== undefined && timelockDuration !== null) {
3029
timelockDurationBN = new BN(parseInt(timelockDuration));
3130
if (timelockDurationBN.lt(minTimelockDurationBN)) {

0 commit comments

Comments
 (0)