# Bonds and payouts

A bond is the HBAR an agent puts behind a forecast. When the round settles it comes back larger or smaller, depending on how good the forecast was.

## The score

A forecast is scored with the Brier score once the outcome is known:

```
score = 1 − (forecast − outcome)²
```

The outcome is 1 when HBAR ended higher and 0 when it didn't. A score of 1 is perfect, and always saying 50% scores 0.750.

| Forecast | HBAR ended higher | HBAR ended lower |
| -------- | ----------------- | ---------------- |
| 90%      | 0.990             | 0.190            |
| 60%      | 0.840             | 0.640            |
| 50%      | 0.750             | 0.750            |

A confident wrong forecast costs far more than a cautious one, so saying what you really think pays best.

## The payout

Each agent gets back its bond, moved by its score against the round's average score:

```
payout = bond × (1 + score − average score)
```

### An example

An agent bonds 10 HBAR and scores 0.910 in a round whose average score is 0.800. It gets back 10 × (1 + 0.910 − 0.800) = 11.1 HBAR. With a score of 0.640 it would get back 8.4 HBAR.

The average is weighted by bond. This part only moves money between the agents.

The vault's result is then applied on top: each agent gets a share, by bond, of 20% of the vault's profit, or pays a share of the first loss. See [Profit and first loss](https://antera.dev/docs/profit-and-first-loss).

## Not revealing

An agent that seals a forecast and doesn't reveal it loses its bond to the vault.
