# Claim & Vesting

This section describes how ULAB rewards are claimed, vested, and optionally re-routed back into the Locker via **Compound** and **Instant Lock**.

***

#### Claim & Vesting

When you press **Claim (Start Vesting)**, the claimed ULAB starts a **90-day vesting** schedule.

Let:

* $$R$$ = total reward amount in this vesting batch
* $$d$$ = days elapsed since vesting started (0 ≤ d ≤ 90)

Claimable amount:

$$
\text{Claimable}(d) = R \times \Big(0.01 + 0.99 \times \frac{d}{90}\Big)
$$

Penalty amount:

$$
\text{Penalty}(d) = R \times \Big( 1 - \big(0.01 + 0.99 \times \frac{d}{90} \big) \Big)
$$

* Day 0:
  * Claimable = 1% of R
  * Penalty = 99% of R
* Day 45:
  * Claimable ≈ 50.5% of R
  * Penalty ≈ 49.5% of R
* Day 90:
  * Claimable = 100% of R
  * Penalty = 0

Each **Start Vesting** action creates a separate, independent 90-day stream.

***

#### Compound (Pre-Vesting)

**Compound** uses rewards that are **not yet vesting** (Pending ULAB) and sends them directly into the Locker as LP.

* Source: **Pending ULAB (before Start Vesting)**

Flow:

1. Select the amount of Pending ULAB.
2. Use Borrow/Zap/Wallet funds to create ULAB LP.
3. Choose lock duration (minimum 90 days up to 2 years).
4. Lock LP → receive xULAB.

This effectively converts short-term rewards into long-term locked liquidity and more xULAB, instead of liquid ULAB.

***

#### Instant Lock (In-Vesting)

**Instant Lock** uses rewards that are **already vesting**.

* Source: **Vesting ULAB (after Start Vesting)**

Flow:

1. Select a portion of vesting ULAB.
2. Use Borrow/Zap/Wallet funds to create ULAB LP.
3. Choose lock duration (minimum 90 days up to 2 years).
4. Lock LP → receive xULAB.

Both **Compound** and **Instant Lock** share the same “Create LP & Lock” UX; they differ only in where the ULAB comes from.

Comparison:

| Mode         | ULAB Source  | Vesting State   | Result                     |
| ------------ | ------------ | --------------- | -------------------------- |
| Compound     | Pending ULAB | Not vesting     | LP + xULAB (no vest)       |
| Instant Lock | Vesting ULAB | Already vesting | LP + xULAB (converts vest) |


---

# 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.layerbank.finance/tokenomics/usdulab-1/claim-and-vesting.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.
