Skip to content

Commit

Permalink
set keeper as part of deploy strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Nov 27, 2024
1 parent d35f392 commit a7a236b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-mainnet-strategy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
REPOTOKEN_CONCENTRATION_LIMIT: ${{ github.event.inputs.repoTokenConcentrationLimit }}
ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }}
DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }}
KEEPER_ADDRESS: ${{ vars.KEEPER }}
GOVERNOR_ROLE_ADDRESS: ${{ vars.GOVERNANCE_FACTORY }}
STRATEGY_MANAGEMENT_ADDRESS: ${{ github.event.inputs.strategyManagementAddress }}
NEW_REQUIRED_RESERVE_RATIO: ${{ github.event.inputs.requiredReserveRatio }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-sepolia-strategy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
REPOTOKEN_CONCENTRATION_LIMIT: ${{ github.event.inputs.repoTokenConcentrationLimit }}
ADMIN_ADDRESS: ${{ vars.ADMIN_ADDRESS }}
DEVOPS_ADDRESS: ${{ vars.DEVOPS_ADDRESS }}
KEEPER_ADDRESS: ${{ vars.KEEPER }}
GOVERNOR_ROLE_ADDRESS: ${{ vars.GOVERNANCE_FACTORY }}
STRATEGY_MANAGEMENT_ADDRESS: ${{ github.event.inputs.strategyManagementAddress }}
NEW_REQUIRED_RESERVE_RATIO: ${{ github.event.inputs.requiredReserveRatio }}
Expand Down
2 changes: 2 additions & 0 deletions script/Strategy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ contract DeployStrategy is Script {
uint256[] memory minCollateralRatios = stringToUintArray(vm.envString("MIN_COLLATERAL_RATIOS"));
address governorRoleAddress = vm.envAddress("GOVERNOR_ROLE_ADDRESS");
uint256 profitMaxUnlockTime = vm.envUint("PROFIT_MAX_UNLOCK_TIME");
address keeper = vm.envAddress("KEEPER_ADDRESS");

bool isTest = vm.envBool("IS_TEST");

Expand All @@ -170,6 +171,7 @@ contract DeployStrategy is Script {
ITokenizedStrategy(address(strategy)).setProfitMaxUnlockTime(profitMaxUnlockTime);

ITokenizedStrategy(address(strategy)).setPendingManagement(strategyManagement);
ITokenizedStrategy(address(strategy)).setKeeper(keeper);
console.log("set pending management");
console.log(strategyManagement);

Expand Down

0 comments on commit a7a236b

Please sign in to comment.