Skip to content

Commit

Permalink
refactor: remove conditional init
Browse files Browse the repository at this point in the history
  • Loading branch information
0xp3th1um committed Aug 7, 2024
1 parent 1c0fd30 commit 5448cd6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions script/phase-1b/01-FarmingDeploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,12 @@ contract Phase1b_FarmingDeployScript is Script {

address admin = reader.envOrReadAddress("FOUNDRY_ADMIN", ".admin");
address nst = reader.envOrReadAddress("FOUNDRY_NST", ".nst");
address rewards = reader.readAddressOptional(".rewards");

vm.startBroadcast();

if (rewards == address(0)) {
rewards = StakingRewardsDeploy.deploy(
StakingRewardsDeployParams({owner: admin, stakingToken: nst, rewardsToken: address(0)})
);
}

address rewards = StakingRewardsDeploy.deploy(
StakingRewardsDeployParams({owner: admin, stakingToken: nst, rewardsToken: address(0)})
);

vm.stopBroadcast();

Expand Down

0 comments on commit 5448cd6

Please sign in to comment.