# 📊Distribution

Detailed explanation of how the LangX Token distribution system works, including eligibility criteria, calculation formula, and anti-abuse measures.

## Token Distribution

Our platform operates a straightforward token distribution system that features both a general limit and a daily limit on the number of tokens allocated. These tokens are distributed based on a member's contribution to the community, measured through various activities.

### Eligibility for Daily Tokens

To be eligible for daily token distribution, members' activities are assessed using the following criteria:

Number of text, voice, and image messages sent

Daily active time on the platform

Day Streaks, consecutive days of activity

Badges, that have been earned

### Distribution Calculation

The number of tokens you receive daily is calculated as a percentage of the daily supply remaining. This calculation:

Incorporates the above activities.

Is subject to caps to prevent abuse. Activities exceeding these caps are appreciated but not included in the calculation.

Each person can receive a very small percentage of the available daily supply.

## Formula

### Base Amount Calculation

The `Baseamount`

is calculated using the following formula:

Note that if no messages are sent within the day, the value will be 0.

### Distribution Percentage

The `Distribution Percentage`

is the proportion of the total daily token distribution that a user is eligible for. It's calculated by dividing the user's base amount by the total base amounts of all users.

For example, if the total base amounts for all users is 9000 and a user's base amount is 975, the `Distribution Percentage`

for that user would be `975 / 9000 = 0.1083`

or 10.83%.

This means that the user is eligible for 10.83% of the total daily token distribution.

The distribution percentage is calculated as follows:

### Parameters Description

The table below provides a description of each parameter used in the calculation of the `Baseamount`

and `Distribution Percentage`

.

### Bonus Multipliers

#### Badges Bonus

Badges work as multiplicands for the previously calculated amount. This percentage bonus is calculated on top of the base amount and accumulates with each badge. Therefore, a maximum bonus of **x10.0** of the base amount is possible for now. For example, if you have the Early-Adopter and Pioneer badges, the bonus would be calculated as (1 + 0.5 + 0.2) = 1.7, meaning a 70% increase on the base amount.

**Calculation Method**

To calculate the total bonus, sum up the bonus percentages of all the badges you possess and add 1 (representing the base amount). The result is your total multiplier. For example, if you have the **Fundamental Badge** and the **Teacher Badge**, the calculation would be:

This means you get a 210% increase on the base amount.

#### Day Streak Bonus

Day streaks also work as multiplicands for the previously calculated amount. This bonus is calculated using the formula `(Streak / 10)`

, where `Streak`

is the number of consecutive days a user has been active. This bonus can reach a maximum of **x3.0**.

## Example

To understand the distribution of one-time bonuses for referred friends based on daily activities, let's break down the formula with an example.

### Recall Formula

The formula for the daily bonus distribution factors in user engagement metrics like message counts, online duration, activity streaks, and badge bonuses to compute a Baseamount. This determines a user's share of daily tokens, ensuring fair and proportional rewards. It incentivizes meaningful participation, fostering a vibrant and engaged community by basing rewards on the value contributed to the platform.

### Inputs

### Calculation Steps

Assume

`Total-Baseamounts`

(the sum of Base Amounts of All Users) is50000.

Then, Distribution Percentage is equal **0.0221** or **2.21%**

This result signifies you are eligible for 2.21% of the daily token distribution.

### Final Calculation

`Distribution = Distribution Percentage * Daily tokens = 0.0432 * 10,000 = 432 tokens`

This example leads to a total distribution of **221 tokens** due to your activity level and your all Badges and Day Streak bonuses.

## Anti-Abuse Measures

To ensure fairness and prevent exploitation, specific caps have been implemented across all parameters. Activities that exceed these caps contribute positively to the community but do not increase the token distribution amount.

This balanced approach ensures that our token distribution remains equitable and rewards meaningful contributions to our community.

Last updated