Skip to content

Commit

Permalink
simplify transferOwnership
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom authored Dec 21, 2023
1 parent 30d9657 commit fac8ba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/FarmingDelegationPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ contract FarmingDelegationPlugin is IFarmingDelegationPlugin, TokenizedDelegatio

function register(string memory name_, string memory symbol_) public override(ITokenizedDelegationPlugin, TokenizedDelegationPlugin) returns(IDelegatedShare shareToken) {
shareToken = super.register(name_, symbol_);
MultiFarmingPlugin farm = new MultiFarmingPlugin(shareToken, _MAX_FARM_REWARDS, address(this));
farm.transferOwnership(msg.sender);
MultiFarmingPlugin farm = new MultiFarmingPlugin(shareToken, _MAX_FARM_REWARDS, msg.sender);
defaultFarms[msg.sender] = address(farm);
}

Expand Down

0 comments on commit fac8ba0

Please sign in to comment.