> For the complete documentation index, see [llms.txt](https://docs.definer.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.definer.org/faqs/distribution-of-rewards.md).

# Distribution of Rewards

Mining rewards are calculated based on the weight of the amount of deposit and the deposited period of time.

For example, a market creator chooses 10,000 XYZ tokens as the total reward for their HODLer market and the collateral is also the XYZ token. The market creator allocates 80% of their total rewards into the XYZ token pool and 20% into the USDT pool.

Assuming the total period for the pool is 10,000 blocks. Each block will reward 0.8 tokens to the XYZ token pool depositors and 0.2 tokens to USDT token pool depositors.

If the XYZ token pool has 100 XYZ tokens total at block t, and user A has 10 XYZ tokens deposited, user A will be rewarded (10/100)\*0.8= 0.08 XYZ tokens at block t. The longer user A holds the deposit position and the more XYZ tokens user A deposits, the greater the rewards user A will receive.

### When can I claim my rewards? Is there any lock-up period?&#x20;

There is no lock-up period for the rewards. The rewarded token can be claimed anytime.

The reward calculation is weighted by the amount of their deposited token and the time of the deposit. This means that users who deposit the market’s base token will be rewarded in real-time.

Users can check the balance and claim under the market detail page and their portfolio page.

![](https://lh4.googleusercontent.com/6uQQFsA_BiC8tP0Anz6tGK683UYHi_UX14x7SCWhfzGqXbfhKBPthsK7czG9Gl2oRSi8GGxrp2TO_JwtA56Dpk3Kup7dUKk1HNvN8SlbvuoKtdVLArKQKKn51d5qEHwfCwwScXp7gnPfxwHnuw)

### Total Rewards & Speed

&#x20;The total amount of reward token is configured at the creation of the HODLer market. Once this is set up, the rewarding speed can only be increased. Any user can choose to increase the speed of the reward under the market detail page. Whoever increases the token, has to supply the total increased amount to the contract.

### **Definition**

**Reward Token Allocation:** The Reward Token Allocation function allows the HODLer Market creator to choose the reward allocation amongst crypto asset pools to reward depositors.


---

# 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://docs.definer.org/faqs/distribution-of-rewards.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.
