// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
import "../../plugins/governance/Governance.sol";
library FacadeWriteLib {
/// @return The new Governance contract address
function deployGovernance(
IStRSRVotes stRSR,
TimelockController timelock,
uint256 votingDelay,
uint256 votingPeriod,
uint256 proposalThresholdAsMicroPercent,
uint256 quorumPercent
) external returns (address) {
return
address(
new Governance(
stRSR,
timelock,
votingDelay,
votingPeriod,
proposalThresholdAsMicroPercent,
quorumPercent
)
);
}
}
|