> 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/23_-_-_.md).

# 23 풀 난이도의 조정

참여자가 많아져 전체 마이닝 파워가 증가하면 보석이 지나치게 빠르게 채굴될 수 있다. 이를 방지하기 위해 각 풀은 전체 마이닝 파워에 따라 난이도를 조정한다.

스톤 풀 \*(j)*의 전체 마이닝 파워를 (P\_j), Target Pool Power를 (P\_j^)*, 풀 난이도를 \*(D\_j)\*라고 할 때 다음과 같이 계산한다.

$$
D\_j = \max(1, P\_j \div P\_j^\*)
$$

CryptoStone의 기준값은 다음과 같다.

$$
P\_j^\* = 40,000,000 \text{ Power}
$$

예시는 다음과 같다.

| Target Pool Power | Total Pool Mining Power | 계산                                          | Pool Difficulty |
| ----------------- | ----------------------- | ------------------------------------------- | --------------- |
| 40,000,000        | 20,000,000              | 20,000,000 ÷ 40,000,000 = 0.5 → max(1, 0.5) | 1.0x            |
| 40,000,000        | 40,000,000              | 40,000,000 ÷ 40,000,000 = 1.0               | 1.0x            |
| 40,000,000        | 80,000,000              | 80,000,000 ÷ 40,000,000 = 2.0               | 2.0x            |
| 40,000,000        | 200,000,000             | 200,000,000 ÷ 40,000,000 = 5.0              | 5.0x            |

이 공식에서 `max(1, ·)` 구조를 적용하는 이유는, 전체 마이닝 파워가 Target Pool Power보다 낮을 때에도 난이도가 1.0x 미만으로 내려가지 않도록 하기 위함이다. 즉, 참여자가 적은 초기 구간에서도 채굴 속도가 기준보다 과도하게 빨라지는 것을 방지한다.

반대로 전체 마이닝 파워가 Target Pool Power를 초과하면 Pool Difficulty는 비례적으로 상승한다. 예를 들어 특정 풀의 전체 마이닝 파워가 80,000,000 Power로 증가하면 Pool Difficulty는 2.0x가 된다. 이 경우 동일한 사용자가 NFT 1개를 채굴하는 데 필요한 시간도 약 2배로 증가한다.

스마트컨트랙트 구현에서는 소수점 연산을 피하기 위해 BPS 방식으로 표현할 수 있다.

$$
D\_{j,\mathrm{BPS}} = \max(10,000, P\_j \times 10,000 \div P\_j^\*)
$$

여기서 10,000 BPS = 1.0x를 의미한다.

이 구조는 참여자가 증가할수록 전체 채굴 속도가 자연스럽게 조정되도록 하며, 각 스톤의 공급이 단기간에 과도하게 고갈되는 것을 방지한다.


---

# 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/23_-_-_.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.
