# $DONUT Mining

<figure><img src="https://2116077902-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQDWD9X7sqrdaadnhyT25%2Fuploads%2FHX9QuGLVoRJnzT4P5Jsx%2Ficon%20(1).png?alt=media&#x26;token=06498817-2590-409c-ba05-7301046d41e4" alt="" width="563"><figcaption></figcaption></figure>

$DONUT is a decentralized store-of-value token on Base. $DONUT implements a unique token mining structure, utilizing a continuous Dutch Auction for its initial distribution and liquidity growth. GlazeCorp builds decentralized infrastructure for DonutDAO on Base chain. Our products work together to create a self-sustaining economic flywheel.\
\
\&#xNAN;**(Mining)**\
$DONUT is mined through a competitive process where only one participant, the King Glazer, can earn emissions at any given time.

*Continuous Dutch Auction:* To become the King Glazer, you pay a "Glaze Price" in ETH.

*Price Mechanics:* The price begins low and doubles every time someone takes over the position, then decays (cools down) linearly to 0 over one hour.

*Game Theory:* Your ETH is paid to the previous miner when you take over mining emissions. You profit if the next miner pays more than you did, but you still earn $DONUT tokens for the entire duration you hold the position. Strategize wisely to maximize your mining payouts. \
\
**When to Mine**

| Scenario              | Action          | Reasoning                             |
| --------------------- | --------------- | ------------------------------------- |
| Price just reset high | Wait            | Price will decay, giving better entry |
| Price near 0          | Mine now        | Someone else will take it soon        |
| High emissions phase  | More aggressive | More DONUT minted per hour            |
| Low activity          | Wait longer     | Price decays more between mines       |

The mining price follows a linear decay formula:

```
currentPrice = initPrice × (epochPeriod - timePassed) / epochPeriod
```

**Example:**

* `initPrice` = 0.1 ETH
* `epochPeriod` = 1 hour (3600 seconds)
* After 30 minutes (1800 seconds):
  * `currentPrice` = 0.1 × (3600 - 1800) / 3600 = **0.05 ETH**

**Why Dutch Auctions defeat snipers:**

1. Being first means paying the HIGHEST price
2. Waiting gives you a LOWER price
3. No advantage to speed - patience wins

**Fee Distribution**\
Every time a new King Glazer takes over, the ETH payment is distributed as follows:

80%: Sent to the previous King Glazer.

15%: Treasury (Liquidity/Buyback & Burn).

5%: Frontend Provider (Builder Code host).

<sub>`// From Miner.sol`</sub>\ <sub>`uint256 public constant FEE = 2_000; // 20% total fee`</sub>\ <sub>`uint256 public constant DIVISOR = 10_000;`</sub>

<sub>`// Fee calculation`</sub>\ <sub>`uint256 totalFee = price * FEE / DIVISOR; // 20%`</sub>\ <sub>`uint256 minerFee = price - totalFee; // 80% to previous miner`</sub>\ <br>

**Tokenomics & Emissions**\
Initial Emission: 4 DONUT / sec

Halving: Every 30 days.

Tail Emission: 0.01 DONUT / sec (forever).

Supply: Approximately 21M at the start of tail emissions.\
\
**Token Addresses (Base)**

| Token        | Address                                      |
| ------------ | -------------------------------------------- |
| DONUT        | `0xAE4a37d554C6D6F3E398546d8566B25052e0169C` |
| gDONUT       | `0xC78B6e362cB0f48b59E573dfe7C99d92153a16d3` |
| DONUT-ETH LP | `0xD1DbB2E56533C55C3A637D13C53aeEf65c5D5703` |

#### Key Contracts

| Contract       | Address                                      |
| -------------- | -------------------------------------------- |
| Miner          | `0xF69614F4Ee8D4D3879dd53d5A039eB3114C794F6` |
| Voter (LSG)    | `0x9C5Cf3246d7142cdAeBBD5f653d95ACB73DdabA6` |
| LSG Multicall  | `0x41eA22dF0174cF3Cc09B1469a95D604E1833a462` |
| Franchise Core | `0xA35588D152F45C95f5b152e099647f081BD9F5AB` |


---

# 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://gum-ball.gitbook.io/donut-miner/usddonut-mining.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.
