# 合约运行&安全

## **BELT token 合约运行**

关于BELT token，重要的是要区分CLAIMER和OWNER：

* **\[ONLY CLAIMER]** claimInitialSupply(uint \_amount)
* **\[ONLY OWNER]** mint(address \_to, uint256 \_amount)

CLAIMER是一个团队控制的钱包（EOA），具有申领初始供应量（200,000 BELT token）的许可。 当此钱包要求此初始供应时，该供应将被铸造。 有关如何使用此供应品的详细信息，请参阅BELT token部分。

OWNER由MasterBelt合约控制。 可以放心，团队无法随意铸造token。

## MasterBelt合约运行

关于MasterBelt合合约写操作，重要的是要了解它们的工作以及实际控制的方式。 两个重要的写操作是：

* **\[ONLY OWNER]** add(uint256 \_allocPoint,IERC20 \_want,bool \_withUpdate,address \_strat)
* **\[ONLY OWNER]** set(uint256 \_pid,uint256 \_allocPoint,bool \_withUpdate)

“添加”意味着可以添加更多的抵押池。 “设置”表示已设置每个池的挖矿分配率。

这些最初由团队控制的钱包（EOA）控制。 但是，一旦设置了治理，它将通过治理共识来完全控制。

## **Swap合约运行**

关于swap合约：

![](/files/b9osotC7bDUhS840wdHA)

请注意，有KILLABLE功能和unkillable功能。 尽管团队有权使用KILLABLE功能，但无法停止“ remove\_liquidity”功能。

这意味着无论哪种情况，用户将始终能够删除他们添加的流动性。

当前，由团队控制的钱包（EOA）拥有设置参数（费用，回购等）的OWNER权限。 被烧毁的BELT将公开地展示在Belt.fi网站上。

设置治理后，将通过治理共识来更改这些参数。


---

# 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.belt.fi/belt-finance-zh-cn/contracts/contract-operation.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.
