Skip to content

Commit

Permalink
set strategy keeper
Browse files Browse the repository at this point in the history
  • Loading branch information
aazhou1 committed Nov 11, 2024
1 parent 1e1a0bd commit 369bbe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/StrategyKeeperManagement.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import "@tokenized-strategy/interfaces/ITokenizedStrategy.sol";

contract StrategyKeeperManagement is Script {
function run() external {
uint256 deployerPK = vm.envUint("PRIVATE_KEY");

uint256 keeperAddress = vm.envAddress("KEEPER_ADDRESS");
address strategy = vm.envAddress("STRATEGY");

// Set up the RPC URL (optional if you're using the default foundry config)
string memory rpcUrl = vm.envString("RPC_URL");

vm.startBroadcast(strategyManagement);
vm.startBroadcast(deployerPK);
ITokenizedStrategy(strategy).setKeeper(keeperAddress);
console.log("accepted management");
vm.stopBroadcast();
Expand Down

0 comments on commit 369bbe4

Please sign in to comment.