Knowledge Hub
How Azuro Works
Components
Odds

Odds

Odds represent the probability of a particular outcome in a Condition actually happening. The odds for each outcome of a Condition are determined as the ratio of the total Condition funds to the funds of that particular outcome.

The higher the odds, the lower the chances of the outcome happening and the higher the potential payout for the player who placed a bet on that outcome. Betting odds are used by the Pool to manage the risk and set payout rates for different bets.

The calculation of the odds is based on the Virtual Funds of the Condition and its margin. Once the Condition is created, initial reinforcement is distributed proportionally among the outcome Virtual Funds based on their initial odds provided by the data provider. When a bettor places a bet, the outcome Virtual Fund on which they bet increases by the amount of the bet, and the net odds are calculated using the following formula:

oi=F0+...+FnFi,where Fi is a Virtual Fund of the outcome i o_{i}=\frac{F_{0} + ... + F_{n}} {F_{i}},\text{where } F_i \text{ is a Virtual Fund of the outcome } i

Also, the betting odds are adjusted according to the profit margin size set when creating the Condition. In order for the betting app to make a profit, the final odds are decreased by the size of the outcome spread, which is calculated based on the probability of the outcome and the profit margin. The probability of the outcome is calculated as the reciprocal of the net odds of the outcome:

pi=1oi=FiF0+...+Fn, where Fi is a Virtual Fund of the outcome i p_{i}=\frac{1}{o_i}=\frac{F_i} {F_{0} + ... + F_{n}}\text{, where } F_i \text{ is a Virtual Fund of the outcome } i

The size of the outcome spread is proportional to the size of the profit margin and inversely proportional to the probability of the outcome. The spread for odds is calculated in such a way that the following conditions are met:

ji:sisj=pjpi \forall j \neq i :\frac{s_{i}}{s_{j}} = \frac{p_{j}}{p_{i}}
si=1pioi s_{i} = 1 - p_{i} o_{i}
111oi=margin \\1 - \frac{1}{\sum\frac{1}{o_{i}}}=margin
 where si is a spread of the outcome i,pi is a probability of the outcome i,oi is an odds of the outcome i with applied spread si \text{ where } \\s_i \text{ is a spread of the outcome } i, \\p_i \text{ is a probability of the outcome } i, \\o_i \text{ is an odds of the outcome i with applied spread } s_i

To find the spreads that satisfy the conditions described above, it is necessary to solve a system of differential equations, which is not feasible within the framework of EVM smart contracts. Therefore, the spread is calculated using a special formula that approximates it with some degree of error.

The payout size for a bet on outcome i in the event of its winning is calculated as follows:

payout=oi(1si)a,where a is a bet amount payout=o_i * (1-s_i)*a, \text{where } a \text{ is a bet amount}