2018-10-24 12:52:11 +00:00
|
|
|
pragma solidity >=0.0;
|
2017-07-12 13:46:33 +00:00
|
|
|
import "../Markets/Market.sol";
|
|
|
|
|
|
|
|
|
|
|
|
/// @title Abstract market maker contract - Functions to be implemented by market maker contracts
|
|
|
|
contract MarketMaker {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Public functions
|
|
|
|
*/
|
2018-07-02 09:14:28 +00:00
|
|
|
function calcCost(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) public view returns (uint);
|
|
|
|
function calcProfit(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) public view returns (uint);
|
|
|
|
function calcMarginalPrice(Market market, uint8 outcomeTokenIndex) public view returns (uint);
|
2017-07-12 13:46:33 +00:00
|
|
|
}
|