# 进入点

该协议提供以下切入点：

### AFSUI 获取器 <a href="#afsui-huo-qu-qi" id="afsui-huo-qu-qi"></a>

**public fun afsui\_to\_sui\_exchange\_rate()：**&#x8FD4;回当前时代的AFSUI<->SUI汇率。

**public fun afsui\_to\_sui()：**&#x7ED9;定 AFSUI 金额返回相应的 SUI 金额。

**public fun sui\_to\_afsui\_exchange\_rate()：**&#x8FD4;回当前纪元的SUI<->AFSUI汇率。

**public fun sui\_to\_afsui()：**&#x7ED9;定 SUI 金额返回相应的 AFSUI 金额。

**public fun total\_sui\_amount()：** 返回在协议中锁定的总 SUI 金额（所有本金 + 奖励）

### 总金额获取器 <a href="#zong-jinehuo-qu-qi" id="zong-jinehuo-qu-qi"></a>

**public fun total\_rewards\_amount()：**&#x8FD4;回已收集的奖励总金额。

**public fun epoch\_was\_changed()：**&#x542F;动纪元更改处理。可能需要连续调用多次。

### 质押 <a href="#zhi-ya" id="zhi-ya"></a>

**public fun request\_stake()：**&#x5C06; SUI 硬币委托给指定的验证器，并立即返回等量的 AFSUI。请注意，验证器必须处于激活状态。

**entry fun request\_stake\_and\_keep()：**&#x4B;eep 版本，直接将 AFSUI 转入交易发送方账户。

**public fun request\_stake\_vec()：**&#x83B7;取 SUI 硬币向量，将其加入指定的验证器，并立即返回等值的 AFSUI。请注意，验证器必须处于激活状态。

entry fun request\_stake\_vec\_and\_keep()：直接将 AFSUI 转入交易发送方账户的 Keep 版本。

**public fun request\_stake\_staked\_sui()：**&#x5BF9;提供的 StakedSui 对象进行再入股，提取相应金额的 AFSUI 并返回。

**public fun request\_stake\_staked\_sui\_and\_keep()：**&#x4FDD;留版本，直接将 AFSUI 转入交易发送者账户。

**public fun request\_stake\_staked\_sui\_vec()：**&#x83B7;取 StakedSui 对象的矢量，重新获取它们，铸入相应金额的 AFSUI 并返回。

**public fun request\_stake\_staked\_sui\_vec\_and\_keep()：**&#x76F4;接将 AFSUI 转入交易发送者账户的 Keep 版本。

### 定期解除质押 <a href="#ding-qi-jie-chu-zhi-ya" id="ding-qi-jie-chu-zhi-ya"></a>

**public fun request\_unstake()：**&#x8BE5;方法获取 AFSUI 作为输入，注册请求，以便在下一个纪元开始时提取相应数量的 SUI。

**public fun request\_unstake\_vec()：**&#x8BE5;方法获取 AFSUI 硬币向量作为输入，将它们连接起来，并注册请求，以便在下一个纪元开始时铸造相应数量的 SUI 硬币。

### 原子质押解除 <a href="#yuan-zi-zhi-ya-jie-chu" id="yuan-zi-zhi-ya-jie-chu"></a>

**public fun request\_unstake\_atomic()：**&#x8BE5;方法获取 AFSUI 硬币作为输入，并立即返回相应数量的 SUI。

**entry fun request\_unstake\_atomic\_and\_keep()：**&#x6B;eep 版本直接将 SUI 转入交易发送者账户。

**public fun request\_unstake\_vec\_atomic()：**&#x8BE5;方法以 AFSUI 硬币向量为输入，将它们合并为一个向量，并立即返回相应的 SUI 金额。

**public fun request\_unstake\_vec\_atomic\_and\_keep()：**&#x4FDD;留版本，直接将 SUI 转入交易发送方账户。

### 验证费 <a href="#yan-zheng-fei" id="yan-zheng-fei"></a>

**public fun rotate\_operation\_cap()：**&#x521B;建并注册新的操作能力对象。

**public fun update\_validator\_fee()：**&#x66F4;改相应的验证器费用。


---

# 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://ch-docs.aftermath.finance/liu-dong-zhi-ya/jia-gou/jin-ru-dian.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.
