# ā”ļøRewards Distribution

Every week, a prize pool is created. It is filled according to the activity on the platform. When a user validates a task, the task compensation is put into the prize pool and he earns points. At the end of each period (weekend) a general user ranking based on points is made. The prize pool is then distributed to the users according to an exponential function. The remainder of this page outlines the main steps involved in calculating the rewards distributed to users.

## Parameters

$to\_distribute$: The amount of money to be distributed

$percent\_to\_win$: The percentage of winning users

$decay\_factor$: The exponential decay factor

## Invariants

A task completed by a user of rank š„ should be better rewarded than a task completed by a user of rank š„ + 1.

## Algorithm

Get the users selected to win the prize pool $winners=users\_number * percent\_to\_win$.

For each user $i$, compute his exponential factor $factor_i=factor(len(winners), decay\_factor, i)$.

For each user $i$, compute his score $score_i=factor_i*nb_{tasks_i}$.

Compute the sum of the scores $sum_{score}=\Sigma score_i$.

For each user $i$, compute his score ratio $ratio_i=score_i/sum_{score}$.

For each user $i$, compute his rewards $reward_i=ratio_i*to\_distribute$.

## TADA vs Gems

The distribution of TADA and Gems uses exactly the same algorithm. However, the quantity of Gems distributed and the number of winners are much higher.

Last updated