LinearLiquidityPoolFactory.sol
1 pragma solidity >=0.6.0; 2 pragma experimental ABIEncoderV2; 3 4 import "../deployment/ManagedContract.sol"; 5 import "../pools/GovernableLinearLiquidityPool.sol"; 6 7 contract LinearLiquidityPoolFactory is ManagedContract { 8 9 address private deployerAddress; 10 11 function initialize(Deployer deployer) override internal { 12 deployerAddress = address(deployer); 13 } 14 15 function create(string calldata name, string calldata symbolSuffix, bool _onlyMintToOwner, address _owner) external returns (address) { 16 //address proxyAddr = address( 17 // new Proxy( 18 // ManagedContract(deployerAddress).getOwner(), 19 return address(new GovernableLinearLiquidityPool(name, symbolSuffix, deployerAddress, _onlyMintToOwner, _owner)); 20 // ) 21 //); 22 //ManagedContract(proxyAddr).initializeAndLock(Deployer(deployerAddress)); 23 //return proxyAddr; 24 } 25 }