> For the complete documentation index, see [llms.txt](https://tonminer.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tonminer.gitbook.io/docs/miner-guides/minting-algorithm.md).

# Minting Algorithm

{% hint style="info" %}
**We compare TON to "DIAMOND"**
{% endhint %}

### **Revenue algorithm logic**

Users deposit TON on our Dapp to start working their miners. Miners produce Diamonds, users sell their Diamonds to make profits, miners work indefinitely for you, and users can withdraw profits until the contract balance is no longer sufficient. The entire operation involves **purchasing miners with your TON - Miners produce Diamonds (Revenue) - selling Diamonds for TON (Revenue Withdrawal).** You can also compound your Diamonds to acquire more miners and earn even more Diamonds.

### Algorithmic formula related to income <a href="#algorithmic-formula-related-to-income" id="algorithmic-formula-related-to-income"></a>

* **Miner price = deposit amount / (deposit amount + contract balance) \* Diamond market.**
* We can observe that the Diamond price is not fixed; it depends on several variables such as the deposit amount, contract balance, and the Diamond market.
* The earlier you enter the market, the more advantage you have!

{% hint style="info" %}
**Summary:** Our daily interest rate is not stable at **8%**. It will fluctuate based on various situations. First and foremost, the sooner you enter Diamond Miner, the greater your advantages. Secondly, during the project's operation, we can perform actions such as reinvestment to maintain our daily interest rate stable and growing. Finally, as long as the contract has a balance, it will be possible to withdraw funds.
{% endhint %}
