# How to stake CAB fixed-term

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

### **Getting set up to stake**

Before staking with CAB, you need to set up your wallet and connect it to CabbageSwap, you also need:

* Some ETH for gas fee.
* CAB to stake in your wallet - learn [how to buy CAB here](/cabbageswap/features/exchange/how-to-trade.md)

Learn how to get start [here](/cabbageswap/get-started/get-started-on-ancient8.md)

### **How to stake CAB fixed-term**

1. Access <https://cabbageswap.com/earn/stake>
2. Unlock your wallet and connect to the app by clicking the "Connect wallet" button.
3. You need to enable the contract first, Once a contract for the staking is enabled, you can stake it by clicking the "**Locked**" button for fixed-term staking.

If you want to [**do the flexible staking**](/cabbageswap/features/staking/how-to-stake-cab-flexible.md), click on the "**Flexible**" button

<figure><img src="/files/gvyU8iOMPmrfavtkqqKm" alt="" width="563"><figcaption><p>Left: Has not approved the contract yet.<br>Right: Already enabled the staking contract, user can choose one of 2 types of staking.</p></figcaption></figure>

4. A popup will show up, allowing you to input the desired staking amount and lock duration. Afterward, click the "Confirm" button.

It's important to read the summary of your position, including yield, lock duration, and unlock date and time before confirming.

<figure><img src="/files/ffLKUVD2Gq0mXMO9YcCS" alt="" width="432"><figcaption></figcaption></figure>

Your wallet will request confirmation for the transaction. To authorize the transaction in your wallet, click "Confirm."

After a brief moment, the window will close, and you will see your updated staked CAB balance in the details.

<figure><img src="/files/HBa9Mu8EZ7MVZUJi4pwI" alt="" width="468"><figcaption></figcaption></figure>

Your staked CAB is continually earning CAB tokens as rewards. You can add more CAB to stake at any time by clicking the "**Add more**" button.&#x20;

CAB rewards will remain locked together with the staked CAB until the staking duration ends.

{% hint style="info" %}
User can still do a flexible staking while you had a fixed-term staking.\
So just need to enable the contract and stake CAB flexible.\
The CAB that you stake flexible here can't convert to fixed-term, it is different from the flexible staking only.
{% endhint %}

### **How to extend the lock duration**

Altered your decision while the staking lock period is active? No problem. You can always extend your lock duration of the CAB staked by clicking "Extend" and select the duration you wish to include beyond the **initial lock duration**. The maximum locking duration is 52 weeks.

> New extended lock duration = initial lock duration + added duration

<figure><img src="/files/HBa9Mu8EZ7MVZUJi4pwI" alt="" width="468"><figcaption></figcaption></figure>

**Example:**

A user staked 2,425.59 CAB in fixed-term staking with an initial lock duration of 16 weeks on 24th Feb 2023.

On April 4th, 2023 (6 weeks later, with 10 weeks remaining until the user's CAB unlocks), the user decides to extend their lock duration by 10 weeks.

1. In the CAB Staking Pool and click **Extend**.
2. Choose the duration you wish to extend (10 weeks in this example).

\
\
Please be aware that your extended lock duration will be the sum of your initial 16-week lock duration and the additional 10 weeks, resulting in a new lock duration of 26 weeks.

<figure><img src="/files/I8eHRkL8OPz1mTiitL0e" alt="" width="432"><figcaption></figcaption></figure>

3. Ensure you are comfortable with the new extended lock duration before clicking **Confirm**.

   Please note that you can not shorten the locking period nor withdraw your CAB prematurely.

### **How to add more CAB to your lock**

While you are locking your staking on the fixed-term pool, you can still add more CAB to your lock easily. Just click on "Add more"

<figure><img src="/files/HBa9Mu8EZ7MVZUJi4pwI" alt="" width="468"><figcaption></figcaption></figure>

Enter the amount of CAB that you want to add to your locked balance.

<figure><img src="/files/LEgP383AvRYG5qb55SHl" alt="" width="432"><figcaption></figcaption></figure>

After you enter the amount of CAB, the "Lock overview" will update for your position. Please check it carefully and click "**Confirm**" if you're satisfied.


---

# 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.cabbageswap.com/cabbageswap/features/staking/how-to-stake-cab-fixed-term.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.
