blob: 3162ce64eedb234a3d7361519f95d33e6f326ef1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
pragma solidity ^0.4.11;
import "../Markets/Market.sol";
/// @title Abstract market maker contract - Functions to be implemented by market maker contracts
contract MarketMaker {
/*
* Public functions
*/
function calcCost(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) public constant returns (uint);
function calcProfit(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) public constant returns (uint);
function calcMarginalPrice(Market market, uint8 outcomeTokenIndex) public constant returns (uint);
}
|