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

# $Wherls Algorithm

The $WHERLS token is governed by a smart contract-based algorithm that automates its core functions, ensuring decentralization, transparency, and efficiency. The algorithm is designed to optimize four primary operations within the ecosystem:

<figure><img src="/files/Pv494WVC2OuxREuaeVpj" alt=""><figcaption></figcaption></figure>

🔁 **1. Dynamic Token Flow**

The $WHERLS algorithm tracks and manages token circulation across various modules:

* NFT marketplace transactions
* User-to-user transfers
* Staking rewards and lock/unlock mechanisms
* Affiliate program payouts

Tokens move based on smart contract triggers, reducing manual intervention and minimizing error or fraud.

🎯 **2. Reward Calculation**

The algorithm distributes staking and masternode rewards based on:

* Amount staked or locked
* Duration of staking
* Node performance metrics (uptime, validation accuracy)
* Token velocity within the user’s wallet

This ensures fair and performance-based earning for users who contribute to network stability.

&#x20;

⚖️  **3. Anti-Inflation Controls**

To maintain token value and scarcity:

* A portion of transaction fees are burned automatically
* A deflationary reward schedule reduces emissions over time
* Liquidity control mechanisms are implemented during high volatility

This algorithmic approach aims to prevent over-supply and price dilution.

&#x20;

📈  **4. Governance Hooks (Future DAO Integration)**

The protocol is designed to support future upgrades to on-chain voting. Governance-related algorithm hooks allow:

* Snapshot of wallet balances
* Vote weighting based on holding time
* Execution of community-approved changes via multi-sig

Together, these mechanisms form the backbone of the Wherls ecosystem — providing a self-sustaining, algorithmically governed network where users benefit from transparent participation and predictable outcomes.


---

# 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://wherls.gitbook.io/wherls/usdwherls-algorithm.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.
