From 827bd0253bb12680c89ef0beba10c4d33d9f3b6d Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Wed, 11 Dec 2024 22:26:13 -0800 Subject: [PATCH] strategy adder --- script/VaultManagement.s.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/script/VaultManagement.s.sol b/script/VaultManagement.s.sol index a7478bdc..f169ce7d 100644 --- a/script/VaultManagement.s.sol +++ b/script/VaultManagement.s.sol @@ -35,7 +35,7 @@ contract SetupVaultManagement is Script { address asset = vm.envAddress("ASSET_ADDRESS"); string memory name = vm.envString("VAULT_NAME"); string memory symbol = vm.envString("VAULT_SYMBOL"); - uint256 profitMaxUnlockTime = vm.envUint("PROFIT_MAX_UNLOCK_TIME"); + uint256 profitMaxUnlockTime = vm.envUint("PROFIT_MAX_UNLOC"K_TIME"); IVaultFactory vaultFactory = IVaultFactory(vaultFactoryAddress); address vaultAddress = vaultFactory.deploy_new_vault( @@ -59,7 +59,9 @@ contract SetupVaultManagement is Script { function _configureVault() internal { address keeper = vm.envAddress("KEEPER_ADDRESS"); - address strategyAdder = vm.envAddress("STRATEGY_ADDER_ADDRESS"); + + address strategyAdder = vm.envAddress("STRATEGY_ADDER"); + uint256 depositLimit = vm.envOr("DEPOSIT_LIMIT", uint256(0)); // Set deployer roles