# 年金

您可以通过此模板创建一个类似于年金的代币，它会在一段时间内向持有者进行支付。持有者可以质押获得复利，也可以切换到支付模式，享有之后逐步释放的金额。

### 输入内容

质押年溢率（APY）：一年的有效收益率。举个例子，100% APY代表用户在质押模式下每年金额会翻倍。最高只能设置300%。

支付周期：在支付模式中，余额将会逐渐释放给持有者。您可以在此设置释放周期。

通胀年数：设置这个数字，您可以控制通胀结束的时间。质押利率在此时间以后会停止。最长可设置50年。

![](/files/1dP51rHNzLTbbgL7QrVY)

### 两种模式

任何人都将处于质押或者支付模式。在质押模式中，你可以获得基于质押利率的复利；在支付模式中，分红利率停止，所有的余额（包括质押过和已经获得的利息）都将逐步释放，并可以领取。当你有质押余额时，你可以在页面上进行模式切换。请注意，每次您从质押模式切换到支付模式时，支付周期都会被重置，您需要等待整个周期才能获得全部余额。

### 常见问题

#### 我急需我的资金，有什么方法在支付模式下提前取回我的余额？

有一个“强制支付”的按钮，点击以后可以提前获得剩余余额。**但是对于提前取出的余额部分，会有50%的罚款**。这是非常不推荐的，您将会失去本应该锁定的一半的资金。

#### 作为代币合约所有者，我有什么特权？

并没有。代币一旦创建，所有者将获得初始供应量。除此以外，合约所有者在代币创建以后没有任何特权。


---

# 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.benswap.cash/zhong-wen/features/sep-20-factory/annuity.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.
