> For the complete documentation index, see [llms.txt](https://docs.cabbageswap.com/cabbageswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cabbageswap.com/cabbageswap/features/staking/how-to-stake-cab-flexible.md).

# How to stake CAB flexible

<figure><img src="/files/sPzpNoQGRSmelAbZQWHJ" 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 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**](/cabbageswap/features/staking/how-to-stake-cab-fixed-term.md), click on the "**Locked**" 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, where you can input the desired staking amount and then click the "**Confirm**" button.

<figure><img src="/files/dSfhlLjaI243gBb37Mgx" 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="/files/kQMHsKJFQD2ugnq2prdQ" 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="/files/zQtXE4NOVDz2HTuCLpJa" 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="/files/YiaJqE7cTZAa7l05wfQe" 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 %}
