LsLMSR
Within the LsLMSR there are six functions available for use:
Constructor: necessary to initiate the prediction market
Setup: necessary to adjust the parameters on creation and to fund the market maker
Buy: utilised by traders when they wish to buy outcome tokens
Withdraw: utilised by the market creator to withdraw their liquidity after the market has resolved
Cost: returns the total cost basis of the market maker
Price: returns the price to purchase a certain number of tokens on a particular outcome