> 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-kr/mining-system/11_mining_pool_template-_factory_.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-kr/mining-system/11_mining_pool_template-_factory_.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.
