2018-10-24 12:52:11 +00:00
|
|
|
pragma solidity >=0.0;
|
2017-07-12 13:46:33 +00:00
|
|
|
import "../Markets/MarketFactory.sol";
|
|
|
|
import "../Markets/StandardMarket.sol";
|
|
|
|
|
|
|
|
|
|
|
|
/// @title Market factory contract - Allows to create market contracts
|
|
|
|
/// @author Stefan George - <stefan@gnosis.pm>
|
|
|
|
contract StandardMarketFactory is MarketFactory {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Public functions
|
|
|
|
*/
|
|
|
|
/// @dev Creates a new market contract
|
|
|
|
/// @param eventContract Event contract
|
|
|
|
/// @param marketMaker Market maker contract
|
|
|
|
/// @param fee Market fee
|
2019-10-21 22:05:34 +00:00
|
|
|
/// @return market Market contract
|
2017-07-12 13:46:33 +00:00
|
|
|
function createMarket(Event eventContract, MarketMaker marketMaker, uint24 fee)
|
|
|
|
public
|
2019-09-16 12:33:43 +00:00
|
|
|
override
|
2017-07-12 13:46:33 +00:00
|
|
|
returns (Market market)
|
|
|
|
{
|
|
|
|
market = new StandardMarket(msg.sender, eventContract, marketMaker, fee);
|
2018-06-27 08:35:38 +00:00
|
|
|
emit MarketCreation(msg.sender, market, eventContract, marketMaker, fee);
|
2017-07-12 13:46:33 +00:00
|
|
|
}
|
|
|
|
}
|