# How to stake CAB flexible

<figure><img src="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2FQaSUISEnsttjkjeLZYCA%2Fhow%20to%20stake%20CAB%20flexible.png?alt=media&#x26;token=65ca0b9a-2e1a-4733-a311-d67eec87c90d" 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](https://docs.cabbageswap.com/cabbageswap/features/exchange/how-to-trade)

Learn how to get start [here](https://docs.cabbageswap.com/cabbageswap/get-started/get-started-on-ancient8)

### **How to stake CAB flexible**

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 "**Flexible**" button for flexible staking.

If you want to [**do the fixed-term staking**](https://docs.cabbageswap.com/cabbageswap/features/staking/how-to-stake-cab-fixed-term), click on the "**Locked**" button

<figure><img src="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2Fln8N7sLc3EnM0petm7OC%2FStart%20to%20stake.png?alt=media&#x26;token=f79c9d52-c179-47e5-8cea-789ebd78bc06" 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, where you can input the desired staking amount and then click the "**Confirm**" button.

<figure><img src="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2F098bi9kvGp5jxC45XPF0%2FstakeCab.png?alt=media&#x26;token=e7366d43-054b-4bb0-a51b-5aafa39e23ee" alt="" width="563"><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="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2FtrjAbaJV1XQc4UfgIRWC%2FMy%20staking_flexible_only.png?alt=media&#x26;token=92175d3a-f385-4427-a699-1728c78e2d6d" 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 "**+**" button or unstake it by clicking the "**-**" button. Each time you add (-) or remove (-) CAB, the CAB reward will be automatically harvested.

<figure><img src="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2Fj4189xl27vJxykxFalAC%2FUnstaking.png?alt=media&#x26;token=ea0285ee-bb16-4524-85bd-42e14a6b3c32" alt="" width="432"><figcaption></figcaption></figure>

Want to convert your flexible staking to fixed-term staking to earn more CAB? Simply click **Convert to Lock** and choose how long you want to lock your CAB.

<figure><img src="https://891312820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HmfXRZsCupsyOMVk3xX%2Fuploads%2FDHLT2eRHky9lzfO8otQs%2FConvert%20To%20Lock%20(3).png?alt=media&#x26;token=786492f1-0987-4b8c-b6f8-b33dfe8f7b4b" alt="" width="432"><figcaption></figcaption></figure>

{% hint style="info" %}
You cannot initiate fixed-term staking if you only have a flexible staking.

However, you can convert all your CAB in flexible staking to fixed-term.
{% endhint %}
