Skip to content

Commit

Permalink
improve farm
Browse files Browse the repository at this point in the history
- include automatic deployment of the manager contract
  • Loading branch information
vm06007 committed Jan 12, 2024
1 parent a377cfe commit ef90efb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions contracts/TimeLockFarmV2Dual.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pragma solidity =0.8.23;

import "./TokenWrapper.sol";
import "./ManagerSetup.sol";

contract TimeLockFarmV2Dual is TokenWrapper {

Expand Down Expand Up @@ -164,9 +165,15 @@ contract TimeLockFarmV2Dual is TokenWrapper {
rewardTokenB = _rewardTokenB;

ownerAddress = msg.sender;
managerAddress = msg.sender;

rewardDuration = _defaultDuration;

ManagerSetup managerSetup = ManagerSetup(
address(this)
);

managerAddress = address(
managerSetup
);
}

/**
Expand Down

0 comments on commit ef90efb

Please sign in to comment.