# Reward Accrual

The reward is finally a combination of [Post Quality (PQ) Score ](/the-network/reward-mechanism/technical-details/post-quality-memagent/post-quality-pq-score.md), [User Quality (UQ) Score](/the-network/reward-mechanism/technical-details/user-quality-uq-memagent.md) and factors in [potential sybil attack](/the-network/reward-mechanism/technical-details/robustness-to-sybil-attacks.md)s. Following the notations set in the previous discussions, the reward for a post $$\mathbf{x}$$ in response to data is denoted as:

The reward in DecAI is designed as a combination of Post Quality (PQ) Score, User Quality (UQ) Score, and an adjustment for potential Sybil attacks. Using the notations established in previous discussions, the reward for a post, given a response to a data instance, is defined as:

$$
\mathcal{R}(\mathbf{x}, \mathbf{y}) = \mathbf{I}(\mathbf{x}, \mathbf{x\_j} \in \mathcal{X}) \cdot \max \bigg( w\_0, w\_1 \cdot \hat{s}(\mathbf{x}, \mathbf{y}) + w\_2 \cdot s(u) \bigg)
$$

where the terms are -&#x20;

* $$\mathbf{I}(\mathbf{x}, \mathbf{x\_j} \in \mathcal{X})$$ is an indicator function that checks for duplicate content within the set of posts $$\mathcal{X}$$. If $$\mathbf{x}$$ is found to be highly similar to an existing post $$\mathbf{x\_j} \in \mathcal{X}$$, the indicator evaluates to 0, effectively setting the reward to zero to prevent duplicate contributions from receiving rewards. Otherwise, it evaluates to 1, allowing the reward calculation to proceed. ([potential sybil attack](/the-network/reward-mechanism/technical-details/robustness-to-sybil-attacks.md))
* $$\hat{s}(\mathbf{x}, \mathbf{y})$$ denotes the [Post Quality (PQ) Score](/the-network/reward-mechanism/technical-details/post-quality-memagent.md), assessing the quality and relevance of the post $$\mathbf{x}$$ with respect to the data $$\mathbf{y}$$.&#x20;
* $$s(u)$$ represents the [User Quality (UQ) Score](/the-network/reward-mechanism/technical-details/user-quality-uq-memagent.md), evaluating the reliability and past contributions of the user $$u$$ who submitted the post.
* Finally, $$w\_0, w\_1,$$ and $$w\_2$$ are weighting factors that balance the influence of each component in the reward calculation.

This formulation combines content quality, user reputation, and duplicate detection to ensure that rewards are allocated fairly and that Sybil attacks and low-quality contributions do not undermine the integrity of the system.

&#x20;

&#x20;


---

# 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://docs.eidon.ai/the-network/reward-mechanism/technical-details/reward-accrual.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.
