# Premiums Accounts

Every policy sold pays a premium; part of that premium is the pure premium. The losses for a sustainable insurance product should be less or equal to the pure premiums collected. This condition doesn't always need to be true, but it should be respected in the long term.

As the first source of capital to cover the losses, premiums are used up to their total exhaustion before accessing other capital sources (junior and senior eTokens).

Several kinds of risks coexist in Ensuro's protocol, often provided by different risk partners. For business and risk-related reasons, we don't want to mix all the premiums from these different sources. Consequently, the protocol has several *Premiums Accounts* that separate the different premium streams, each account collecting the pure premiums from one or more risk modules.

On the solvency side, each Premiums Account might be linked to a junior eToken and a senior eToken, to back up the solvency needs when premiums are exhausted.

<figure><img src="/files/NSaGjsIIGNxvFovdNvz3" alt=""><figcaption></figcaption></figure>

## Pure premiums

The *premiums account* contract keeps track of the pure premiums. On one side, it tracks the *active pure premiums*, i.e., the pure premiums of the active policies of the connected *risk modules*.

Pure premiums accounts earn funds when a policy expires and have losses when there's a payout. For covering the losses, the precedence is:

1. ***Won pure premiums***: the accumulated surplus of premiums earned from past expired policies.
2. **Borrow from active premiums**: the pure premiums of active policies are used for payouts.
3. ***Junior eToken***: takes an [internal loan](/ensuro-docs/smart-contracts/liquidity-pools.md#internal-loan) from the junior eToken.
4. ***Senior eToken***: takes an [internal loan](/ensuro-docs/smart-contracts/liquidity-pools.md#internal-loan) from the senior eToken.

The contract tries each source of capital, going to the next one only if unable to cover the payout.

When policies expire, the earned pure premium is used for:

1. ***Repay Senior eToken debt***: [repay the internal loan](/ensuro-docs/smart-contracts/liquidity-pools.md#internal-loan-repayment) with the Senior eToken if they were any debt.
2. ***Repay Junior eToken debt***: [repay the internal loan](/ensuro-docs/smart-contracts/liquidity-pools.md#internal-loan-repayment) with the Junior eToken if they were any debt.
3. ***Reimburse borrowed active premiums*** if active pure premiums were used for payouts.
4. ***Accumulate as won pure premium***: if none of the previous debts are outstanding, it accumulates the surplus as *won pure premiums*.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ensuro.co/ensuro-docs/smart-contracts/premiums-accounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
