> For the complete documentation index, see [llms.txt](https://doc.cryptostone.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.cryptostone.org/crypto-stone/crypto-stone-wp-cn/wa-kuang-xi-tong/11miningpooltemplate-yu-factory-jie-gou.md).

# 11. Pool Template 与 Factory

12 个 Mining Pool Contract 并不是拥有不同逻辑的独立开发物。所有矿池都基于同一个经过审计的 Mining Pool Template 部署。各矿池使用同样的核心逻辑，只是在以下参数上有所不同。

| 参数                   | 说明              |
| -------------------- | --------------- |
| `stoneType`          | 该矿池中被挖掘的宝石种类    |
| `maxSupply`          | 该宝石的最大发行量       |
| `baseMiningInterval` | 基础挖矿周期          |
| `targetPoolPower`    | 基准挖矿算力          |
| `scarcitySchedule`   | 各宝石的减半结构        |
| `poolAddress`        | NFT 合约允许的发行权限地址 |

为此，CryptoStone 可以采用 Pool Factory 结构。Pool Factory 基于同一个 Mining Pool Template 创建 12 个宝石池，并在部署后固定各矿池的核心参数。

| 优点    | 说明                          |
| ----- | --------------------------- |
| 代码一致性 | 12 个矿池使用相同逻辑。               |
| 审计效率  | 可围绕一个 Pool Template 进行安全审计。 |
| 风险降低  | 减少因每个矿池代码不同而产生的例外性漏洞风险。     |
| 参数透明性 | 各矿池差异仅由公开的固定参数产生。           |
| 扩展性   | 未来扩展新宝石池时可继续使用相同结构。         |

因此，CryptoStone 在保持“12 个独立矿山”这一经济结构的同时，在开发层面通过使用统一且可验证的智能合约模板来提高稳定性与透明度。


---

# 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://doc.cryptostone.org/crypto-stone/crypto-stone-wp-cn/wa-kuang-xi-tong/11miningpooltemplate-yu-factory-jie-gou.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.
