From a7a236be78c5d5842bed2a401d0499c94ea2f193 Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Wed, 27 Nov 2024 17:05:49 -0500 Subject: [PATCH] set keeper as part of deploy strategy --- .github/workflows/deploy-mainnet-strategy.yaml | 1 + .github/workflows/deploy-sepolia-strategy.yaml | 1 + script/Strategy.s.sol | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-mainnet-strategy.yaml b/.github/workflows/deploy-mainnet-strategy.yaml index b2cea044..e0e77be0 100644 --- a/.github/workflows/deploy-mainnet-strategy.yaml +++ b/.github/workflows/deploy-mainnet-strategy.yaml @@ -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 }} diff --git a/.github/workflows/deploy-sepolia-strategy.yaml b/.github/workflows/deploy-sepolia-strategy.yaml index 849adb30..fcf44837 100644 --- a/.github/workflows/deploy-sepolia-strategy.yaml +++ b/.github/workflows/deploy-sepolia-strategy.yaml @@ -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 }} diff --git a/script/Strategy.s.sol b/script/Strategy.s.sol index 56eba271..16906f8f 100644 --- a/script/Strategy.s.sol +++ b/script/Strategy.s.sol @@ -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"); @@ -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);