mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
564 B
Solidity
15 lines
564 B
Solidity
|
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);
|
||
|
}
|