> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/chinese/huan-ying-lai-dao-pancakeswap/vecake-sunset/archive-vecake/how-to-get-vecake.md).

# 如何获得 veCAKE？

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28342%29.png" alt=""><figcaption></figcaption></figure>

就像固定期限的 CAKE 质押池一样，要享受 veCAKE 带来的好处，只需将 CAKE 锁定一段时间即可。

## 前往 CAKE 质押页面 <a href="#dcf081d0-9b78-4bfc-be0f-44d3d227b4d2" id="dcf081d0-9b78-4bfc-be0f-44d3d227b4d2"></a>

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28343%29.png" alt=""><figcaption></figcaption></figure>

前往 <https://pancakeswap.finance/cake-staking?chain=bsc> 并连接你的钱包。请注意，veCAKE 质押仅在 BNB Chain 上可用。

## 选择锁定数量和时长

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28344%29.png" alt="" width="375"><figcaption></figcaption></figure>

在左侧，你可以输入你希望锁定的 CAKE 数量。

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28345%29.png" alt="" width="375"><figcaption></figcaption></figure>

在右侧，你可以选择锁定 CAKE 的时长。最短锁定时长为 1 周，最长锁定时长现已延长至 4 年。

要快速选择锁定时长，请使用快捷操作按钮在以下选项间进行选择：1 周、1 个月、6 个月、1 年和 4 年。

## 批准 CAKE 支出并开始锁定 <a href="#abd2285e-6773-43d2-b6fb-135bbf93e36f" id="abd2285e-6773-43d2-b6fb-135bbf93e36f"></a>

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28346%29.png" alt="" width="375"><figcaption></figcaption></figure>

确认后，点击"Lock CAKE"继续。将出现一个加载弹窗，你的钱包应会提示你确认 CAKE 支出。在钱包中确认交易以继续。

CAKE 支出批准交易执行后，应会出现另一个钱包弹窗。确认该交易以锁定 CAKE 并获得 veCAKE。

## 操作完成 <a href="#fdf5376d-2959-47a6-aa98-4c3e39358e86" id="fdf5376d-2959-47a6-aa98-4c3e39358e86"></a>

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%28347%29.png" alt=""><figcaption></figcaption></figure>

确认后，你应会在左侧看到你的 veCAKE 质押仓位详情，包括锁定的 CAKE 数量和解锁时间。最重要的是——你的 veCAKE 数值。

向下滚动以查看所有 veCAKE 好处。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pancakeswap.finance/chinese/huan-ying-lai-dao-pancakeswap/vecake-sunset/archive-vecake/how-to-get-vecake.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
