Skip to content

Commit

Permalink
Merge pull request #111 from term-finance/vault-set-strategy-adder
Browse files Browse the repository at this point in the history
vault set strategy adder:
  • Loading branch information
aazhou1 authored Dec 12, 2024
2 parents 0677e00 + 956e35e commit 6431f97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-mainnet-vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-sepolia-vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions script/VaultManagement.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
}
Expand Down

0 comments on commit 6431f97

Please sign in to comment.