solidity/test/compilationTests/gnosis/MarketMakers/MarketMaker.sol

15 lines
583 B
Solidity
Raw Normal View History

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
2019-10-23 20:10:12 +00:00
abstract contract MarketMaker {
2017-07-12 13:46:33 +00:00
/*
* Public functions
*/
2019-11-05 17:25:34 +00:00
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);
2017-07-12 13:46:33 +00:00
}