# xULAB

**xULAB** is a ve-style, non-transferable balance that you receive by **locking ULAB LP** in the Locker.

The amount of xULAB you get depends on:

* How much ULAB LP you lock (**LockedLPValue**)
* How long you lock it for (**LockPeriod**, up to 2 years)

#### Inputs

* `LockedLPValue`
  * Economic value (USD) of your locked ULAB LP.
* `LockPeriod`
  * Lock duration, chosen by the user, capped at **2 years** (24 months).

***

#### xULAB Formula

$$
\text{xULAB} = \Bigg( \min\Big(\frac{\text{Lock}\_{\text{Months}}}{24},\ 1\Big) \Bigg) \times \text{LockedLPValue}
$$

* Locking **longer** linearly increases your xULAB up to 24 months.
* Beyond 24 months, xULAB does **not** increase further (hard cap).

#### Example Table

Assume `LockedLPValue = $100`.

| Lock Period | Fraction of Max | xULAB Calculation | xULAB Result |
| ----------- | --------------- | ----------------- | ------------ |
| 3 months    | 3 / 24 = 0.125  | 0.125 × 100       | 12.5         |
| 12 months   | 12 / 24 = 0.5   | 0.5 × 100         | 50           |
| 24 months   | 24 / 24 = 1.0   | 1.0 × 100         | 100          |

***
