solidity/test/compilationTests/gnosis/MarketMakers/MarketMaker.sol
2019-11-14 11:49:39 +01:00

15 lines
583 B
Solidity

pragma solidity >=0.0;
import "../Markets/Market.sol";
/// @title Abstract market maker contract - Functions to be implemented by market maker contracts
abstract contract MarketMaker {
/*
* Public functions
*/
function calcCost(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) virtual public view returns (uint);
function calcProfit(Market market, uint8 outcomeTokenIndex, uint outcomeTokenCount) virtual public view returns (uint);
function calcMarginalPrice(Market market, uint8 outcomeTokenIndex) virtual public view returns (uint);
}