# AI-Worker Incentives Competition

This competition algorithm is designed to reward AI-workers based on their performance and contributions to the network, ensuring a fair and competitive environment that encourages service quality and network participation.The specific calculation process is as follows:

1. **API Request Score (Ax)**

This score is determined by the total number of API tokens consumed by AI-worker X in relation to the total API tokens consumed across the network for all AI-workers. If $$T\_{API\_x}$$ represents the token cost for an API call and $$N\_{API\_x}$$ is the number of API calls are from AI-worker X, the API request score is calculated as follows:

$$
A\_x = \frac{\sum (T\_{API\_x} \times N\_{API\_x})}{\sum (T\_{API\_i} \times \text{Total API Calls})}
$$

2. **AI-Worker Staking Funds Score (Bx)**

This score is based on the proportion of funds staked by AI-worker X relative to the total funds staked by all AI-workers.

$$
B\_x = \frac{B\_x}{\sum B\_i}
$$

3. **AI-worker Hash Rate Score (Cx)**

This score reflects the hash power contribution of AI-worker X to the total network hash power.

$$
C\_x = \frac{C\_x}{\sum C\_i}
$$

4. **User Feedback Score (Dx)**

This score is determined by the user feedback for AI-worker X's services compared to the aggregated user feedback for all AI-workers.

$$
D\_x = \frac{D\_x}{\sum D\_i}
$$

5. **Final Incentive Score Calculation**

Where $$𝛼1,𝛼2,𝛼3,𝛼4$$ are the multiplier factors for each score component and $$𝛼1+𝛼2+𝛼3+𝛼4=100%α1​+α2​+α3​+α4​=100%$$%.

The final incentive score for AI-worker X is calculated by applying weighted multipliers ($$𝛼$$) to each score component:

$$
\text{Final Incentive Score for AI-worker X} = (A\_x \times \alpha\_1%) + (B\_x \times \alpha\_2%) + (C\_x \times \alpha\_3%) + (D\_x \times \alpha\_4%)
$$

6. **Daily Incentive Amount**

At the end of each day, AI-worker X's incentive amount is calculated by dividing its final score by the total score of all AI-workers, then multiplying by the AI-worker Stack's share of the daily reward (60%) and the daily token release

$$
\text{Incentive Amount for AI-worker X} = \left( \frac{\text{Final Incentive Score for AI-worker X}}{\text{Total Incentive Score of All AI-workers}} \right) \times 60% \times \text{Daily Token Release}
$$

**Eg: Rewards in Creation Stage for Ai-worker X**

$$
\text{Daily Incentive for AI-worker X} = \left( \frac{(A\_x \times \alpha\_1%) + (B\_x \times \alpha\_2%) + (C\_x \times \alpha\_3%) + (D\_x \times \alpha\_4%)}{\text{Total Incentive Score of All AI-workers}} \right) \times 0.60 \times 410,900 \text{ QFT}
$$
