solidity/test/compilationTests/gnosis/MarketMakers/MarketMaker.sol
2018-07-02 18:58:44 +02:00

15 lines
552 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 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);
}