Core contract consists whole betting logic of Azuro Protocol.
Core contract response for correct odds calculation and it's slippage.
Core contract resolving bettor's prizes and loses.
function putBet(
uint256 conditionId,
uint256 tokenId,
uint128 amount,
uint64 outcome,
uint64 minOdds)
external override OnlyLP
returns (
uint64,
uint128,
uint128)
This function accepts bets and calculates odds for them.
Returns:
function resolvePayout(uint256 tokenId) external override OnlyLP
returns (bool success, uint128 amount)
This function check if bettor have some unpaid prize for the specified Bet.
Returns:
function createCondition(
uint256 oracleCondId,
uint128 scopeId,
uint64[2] memory odds,
uint64[2] memory outcomes,
uint64 timestamp,
bytes32 ipfsHash
) external override onlyOracle