From 956e35e33a78d0d1afb64e50bef4f6e55f537a79 Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Wed, 11 Dec 2024 22:19:20 -0800 Subject: [PATCH] vault set strategy adder: --- .github/workflows/deploy-mainnet-vault.yaml | 1 + .github/workflows/deploy-sepolia-vault.yaml | 1 + script/VaultManagement.s.sol | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/deploy-mainnet-vault.yaml b/.github/workflows/deploy-mainnet-vault.yaml index f361f2bf..e6ed270f 100644 --- a/.github/workflows/deploy-mainnet-vault.yaml +++ b/.github/workflows/deploy-mainnet-vault.yaml @@ -69,6 +69,7 @@ jobs: DEPOSIT_LIMIT: ${{ github.event.inputs.depositLimit }} VAULT_GOVERNANCE_FACTORY: ${{ vars.VAULT_GOVERNANCE_FACTORY }} KEEPER_ADDRESS: ${{ vars.KEEPER }} + STRATEGY_ADDER: ${{ vars.STRATEGY_ADDER }} PROFIT_MAX_UNLOCK_TIME: ${{ github.event.inputs.profitMaxUnlockTime }} DEFAULT_PERFORMANCE: ${{ github.event.inputs.defaultPerformance }} DEFAULT_MAX_FEE: ${{ github.event.inputs.defaultMaxFee }} diff --git a/.github/workflows/deploy-sepolia-vault.yaml b/.github/workflows/deploy-sepolia-vault.yaml index 5fb583b0..0d48b55e 100644 --- a/.github/workflows/deploy-sepolia-vault.yaml +++ b/.github/workflows/deploy-sepolia-vault.yaml @@ -69,6 +69,7 @@ jobs: DEPOSIT_LIMIT: ${{ github.event.inputs.depositLimit }} VAULT_GOVERNANCE_FACTORY: ${{ vars.VAULT_GOVERNANCE_FACTORY }} KEEPER_ADDRESS: ${{ vars.KEEPER }} + STRATEGY_ADDER: ${{ vars.STRATEGY_ADDER }} PROFIT_MAX_UNLOCK_TIME: ${{ github.event.inputs.profitMaxUnlockTime }} DEFAULT_PERFORMANCE: ${{ github.event.inputs.defaultPerformance }} DEFAULT_MAX_FEE: ${{ github.event.inputs.defaultMaxFee }} diff --git a/script/VaultManagement.s.sol b/script/VaultManagement.s.sol index 81ad38cb..a7478bdc 100644 --- a/script/VaultManagement.s.sol +++ b/script/VaultManagement.s.sol @@ -59,6 +59,7 @@ contract SetupVaultManagement is Script { function _configureVault() internal { address keeper = vm.envAddress("KEEPER_ADDRESS"); + address strategyAdder = vm.envAddress("STRATEGY_ADDER_ADDRESS"); uint256 depositLimit = vm.envOr("DEPOSIT_LIMIT", uint256(0)); // Set deployer roles @@ -78,6 +79,8 @@ contract SetupVaultManagement is Script { vault.set_use_default_queue(true); console.log("set use default queue to true"); + vault.set_role(strategyAdder, 129); + // Transfer management _transferVaultManagement(); }