# Priority Upgrade

## What is it?

Every credit-token (CT) is minted with Middle priority by default. A holder can **upgrade** any number of their tokens to High priority at any time by paying a fee. In a default scenario, High tokens are repaid first (principal + interest), so they are safer.

<details>

<summary>Capacity rule (Advanced Users)</summary>

To keep the pool balanced, no more than **⅓ of all CT-tokens** may sit in the High bucket.\
We measure the current fill level u\_t:

<figure><picture><source srcset="https://1264138555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRXI3mwHy3PvVywOfKJUK%2Fuploads%2F7OAriUdZsuBTEXvAH0ad%2Fut_phi_dark.png?alt=media&#x26;token=bb01b43e-b03f-4b33-b856-e1d17de39d70" media="(prefers-color-scheme: dark)"><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfQVFHjBBuHZF-yEMpR5Ui8zVnlMk0vIQUw1l_1c8mkjMcRPWlTxw4_OgMG9FpSQwzbdy2SU7srIFVt56VAGUaJIsF2oPG99Cd9FyZUP3X7LAXE40fnK5d0t1GQdP3nGvPN55s71w?key=uyWe8rY2jy2nS4gSFfqFJ_Vw" alt=""></picture><figcaption></figcaption></figure>

Where:

* **H\_t:** number of High-priority CTs in the pool.
* **T\_t**​ – total CT supply (High + Middle + Low).<br>

If **u\_t = 1** the High bucket is full; no further upgrades are allowed until more Middle tokens appear (e.g., after a new stage).

**Example**\
Before a stage: 1000 High, 3 500 Middle, 500 Low\
u\_t = 1000 / \[(1/3) x 5000] = 0.60\
After minting 5000 new Middle tokens:\
u\_t = 1000 / \[(1/3) x 10000] = 0.30: room to upgrade again.

</details>

<details>

<summary>Upgrade Price (Advanced Users)</summary>

The cost to lift one CT from Middle → High grows linearly with the bucket fill:

<figure><picture><source srcset="https://1264138555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRXI3mwHy3PvVywOfKJUK%2Fuploads%2F6Z505VBHYyeIJyI5s5rZ%2Fp_usdc_ut_dark.png?alt=media&#x26;token=e4e885e2-21f8-49b0-a1ea-1cf68bff1c26" media="(prefers-color-scheme: dark)"><img src="https://1264138555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRXI3mwHy3PvVywOfKJUK%2Fuploads%2Fwbo12mYLHlb72Ed5rwJc%2Fimage.png?alt=media&#x26;token=e84ecf99-494a-4954-a522-1103c20a8623" alt=""></picture><figcaption></figcaption></figure>

<figure><picture><source srcset="https://1264138555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRXI3mwHy3PvVywOfKJUK%2Fuploads%2FrXIKRU3XLDzQpjdXtQjp%2Fp_sl_ut_dark.png?alt=media&#x26;token=69daef5c-1adc-40c3-b2e6-abc5d3322644" media="(prefers-color-scheme: dark)"><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXemwFOop13IdYmYcvIt_5vvgoyOTAA_EDESNBKEQDeZaeJKqUjPyL7nDtMiD7I-AmpGh6sjxqLtgsCdch-8zqTuwQVam7C5vtXMyijGorQ5-8jqzGyMxQtm1bxpJ9Rlyh_YYIDsQg?key=uyWe8rY2jy2nS4gSFfqFJ_Vw" alt=""></picture><figcaption></figcaption></figure>

Where:

* **C\_nom**: CT’s face value (e.g., “10” in **$CT\_ProjectXXX\_10…**).
* **a**: minimum premium (fraction of face value).
* **b:** slope: how much the premium rises as High fills up.
* **P\_average($L):** average price of mint of one $8LENDS in bonding-curve P\_mint (see [**P\_average**](https://8lends.gitbook.io/eightlends/token-payments#p_average-price-in-usd8lends-formula)).&#x20;

Holders may pay in **USDС/EUR** or directly in **$8LENDS** at the on-chain conversion above.

</details>

<details>

<summary>Other Rules</summary>

* Upgrades are only possible **from Middle → High** (never from Low).
* Tokens chosen for upgrade must mature one day before the loan’s due date.
* No upgrades once the Project is declared in **default**.
* A holder can **rebalance**: upgrade some CTs and downgrade others in the same wallet.
* Fees collected for upgrades are either
  1. used to top-up lower priorities, **or**
  2. burned outright (see [**Priority Downgrade**](https://8lends.gitbook.io/eightlends/usd8lends-token-utility-models/priority-downgrade)).

High-priority CTs enjoy first-loss protection: in default they are paid out ahead of Middle and Low stages.

</details>
