> ## Documentation Index
> Fetch the complete documentation index at: https://blockbet.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Understanding BlockBet Odds: Margin and Pool Shifts

> Understand decimal odds, how club ratings power BlockBet's probability model, the 5.5% house margin, and how USDC pool activity shifts live odds.

BlockBet uses **decimal odds** throughout — the same format used by most European sportsbooks. Before each virtual match kicks off, the odds engine reads both clubs' ratings, runs a probability model, applies a house margin, and then adjusts further as real USDC flows into the betting pools. This page explains each of those steps so you always know exactly what a price means and where it comes from.

## Reading Decimal Odds

A decimal odds figure tells you the **total return per \$1 staked**, including your original stake back.

* Odds of **2.10** on a $10 bet → total return $21.00 → profit \$11.00
* Odds of **1.85** on a $50 bet → total return $92.50 → profit \$42.50
* Odds of **1.05** → the minimum BlockBet will ever display (near-certainty, very thin profit margin)

> **Formula:** `Payout = Stake × Decimal Odds`

## How Odds Are Calculated

### Step 1 — Club Strength Scores

Each club has eight ratings: attack, midfield, defence, goalkeeping, overall, form, homeAdvantage, and awayPerformance. The engine combines these into a single **strength score** for each side, applying the home or away modifier as appropriate.

### Step 2 — Raw Win Probabilities

The two strength scores are compared to produce raw home and away win probabilities:

```
rawHome = homeStrength / (homeStrength + awayStrength)
rawAway = awayStrength / (homeStrength + awayStrength)
```

### Step 3 — Draw Probability

Football has a meaningful draw rate. BlockBet models this with a formula that reflects a real-world base draw rate of **26–28%** and increases it when the two sides are closely matched:

```
diff     = |rawHome − rawAway|
drawBase = 0.28 − (diff × 0.20)   // closer match → higher draw probability
drawProb = clamp(drawBase, 0.10, 0.35)
```

The final home and away probabilities are then scaled down to accommodate the draw:

```
homeProb = rawHome × (1 − drawProb)
awayProb = rawAway × (1 − drawProb)
```

### Step 4 — House Margin (5.5%)

Fair odds (1 ÷ probability) are reduced by the **5.5% house margin** to produce the displayed price:

```
fairOdds        = 1 / probability
displayedOdds   = fairOdds × (1 − 0.055)
```

**Worked example — Home probability 55%:**

| Step | Calculation | Result |
| - | - | - |
| Fair odds | 1 ÷ 0.55 | 1.818 |
| Apply 5.5% margin | 1.818 × 0.945 | **1.72** |

The sum of all three implied probabilities (after margin) exceeds 100%, forming the **\~105.5% book** that covers BlockBet's operating costs.

## Pool Influence on Odds

Once bets start flowing in, odds shift toward a **parimutuel distribution** based on actual USDC in each outcome's pool:

```
poolOdds(side) = totalPool × (1 − margin) / poolForThatSide
```

This means:

* A heavily backed Home side will see its odds **shorten** (more money chasing the same pool).
* The Draw and Away prices will **lengthen** as their pools become relatively smaller.
* Odds can change **right up until kick-off**. The price you see when you place your bet is the price locked into your on-chain record.

> [!NOTE]
>
> Once a match moves from `betting` to `first_half`, no new bets are accepted and odds are frozen.

## Example Match Odds

The table below shows how a typical match might look when two evenly matched clubs face off:

| Outcome | Probability | Fair Odds | After 5.5% Margin |
| - | - | - | - |
| Home Win | 42% | 2.38 | **2.25** |
| Draw | 27% | 3.70 | **3.50** |
| Away Win | 31% | 3.23 | **3.05** |

> [!TIP]
>
> The Draw price is often the most generous relative to its true probability. Closely matched clubs produce draw probabilities toward the upper end of the 10–35% range, which can make the Draw a value pick.

> [!WARNING]
>
> Odds displayed in the UI already include the house margin. Do not add a further margin calculation when estimating your potential payout — just multiply your stake by the displayed odds.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.