mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f598b1515f
Fix whitespace
27 lines
844 B
Solidity
27 lines
844 B
Solidity
pragma solidity >=0.0;
|
|
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
|
|
/// @return market Market contract
|
|
function createMarket(Event eventContract, MarketMaker marketMaker, uint24 fee)
|
|
public
|
|
override
|
|
returns (Market market)
|
|
{
|
|
market = new StandardMarket(msg.sender, eventContract, marketMaker, fee);
|
|
emit MarketCreation(msg.sender, market, eventContract, marketMaker, fee);
|
|
}
|
|
}
|