> For the complete documentation index, see [llms.txt](https://xbpro.gitbook.io/xbpro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xbpro.gitbook.io/xbpro/functionality.md). Agents can also search and read this documentation through its [MCP server](https://xbpro.gitbook.io/xbpro/~gitbook/mcp).

# Functionality

## Basic Principles

The procedure operates in rounds, with each round lasting approximately 24 hours. In each round, a specific amount of **$XBPro** is minted. The first day starts with 10,000 tokens and this decreases by 0.2% each subsequent round.

1st day: 10,000 **$XBPro**

2nd day: 9,980 **$XBPro**

...&#x20;

365th day: 5,000 **$XBPro**

...&#x20;

\~22630th day: 0 **$XBPro**

## Acquiring $XBPro

To earn **$XBPro**, you have to send at least one batch to the Smart Contract during a cycle. A batch equals 0.01 **$BNB** + 4 CAKE (akin to adding liquidity on a DEX).

## $XBPro Distribution per Cycle

At the end of each cycle, the Smart Contract distributes the **$XBPro** allocated for that cycle (e.g., 10,000 **$XBPro** on the first day) in proportion to the number of batches a user has sent. The maximum number of batches allowed per user is 10,000.

$$
UserRewardsCycle= Total CycleRewards \* UserBatchNb/CycleTotalBatches
$$

## $CAKE

At the end of each cycle, all $CAKE tokens are BURNED.

## $BNB

All **$BNB** collected during each cycle goes into a pool and is distributed at the end of the cycle as follows:&#x20;

90% -> distributed to all participants in the cycle (anyone who burned at least one batch) and all XBPro stakers;&#x20;

10% -> used by the team for administrative costs

## Claiming rewards ($XBPro)

When a cycle ends, **$XBPro** tokens assigned to a user are automatically staked in the protocol. If the user decides to claim the **$XBPro** tokens, they will stop generating protocol fee (**$BNB**) for the user, including the cycle in which they were claimed. To start earning **$BNB** again, the user must stake the **$XBPro** tokens. There is no lock period for claiming **$XBPro**.

## Claiming Protocol Fee ($BNB)

All rewards a user has in the protocol fee are available for withdrawal at any time.

## Staking $XBPro

Unclaimed and staked **$XBPro** tokens generate passive income in **$BNB** based on the share of the reward pool each user is entitled to. Unclaimed **$XBPro** tokens are automatically staked within the protocol, so the process of claim -> stake is unnecessary. Claimed or unstaked **$XBPro** tokens need to be staked back into the protocol.

## Why participate in token burning?

Taking part in the token burning process offers various benefits for users and the ecosystem:

* **Earn rewards**: Users receive **$XBPro** tokens and **$BNB** rewards for their contributions, generating passive income in future cycles.
* **Enhance token value**: By burning tokens, the total supply decreases, potentially boosting the token's value and benefitting all holders.
* **Foster ecosystem growth**: The process encourages long-term commitment, fostering a vibrant and strong community that contributes to the token's success.
* **Support price stability**: Burning can help maintain price stability by removing tokens from circulation.
* **Incentivize engagement**: The mechanism attracts users to actively participate each cycle, fuelling further growth and adoption.
* **Promote sustainable growth**: The process of managing token supply and distributing rewards encourages sustainable growth, benefiting the ecosystem over time.
* **Compound earnings**: As users continue to participate, their $XBPro tokens and $BNB rewards can accumulate and compound over time, potentially leading to substantial returns on their initial contributions.
* **Claim $XBPro**: At any time, you have the choice to claim your $XBPro tokens and trade them on a DEX.&#x20;

## Cycle diagram flow

<figure><img src="https://1021592375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmROgx3RVUC7gFKpCRPQE%2Fuploads%2Fcf3nPstGpthHGUEICIvU%2Fcycle%20start.jpg?alt=media&amp;token=b9d704b5-5f8b-45fe-a0b8-aa9490562850" alt=""><figcaption></figcaption></figure>

## Example

### Day 1:&#x20;

10,000 $XBPro tokens are minted. Emma decides to participate and contributes 100 batches (1 $BNB + 400 CAKE).&#x20;

Total batches for Day 1: 100 Emma's rewards on Day 1 are calculated as follows: 10,000 $XBPro \* (100/100) = 10,000 $XBPro.&#x20;

Emma's $XBPro tokens are automatically staked.&#x20;

The BNB Pool on Day 1 contains 1 $BNB from Emma's batches. 0.9 $BNB is distributed to participants and stakers, and 0.1 $BNB goes to the team for administrative costs.&#x20;

Since Emma is the only participant on Day 1, she receives the entire 0.9 $BNB.&#x20;

400 CAKE tokens are burned.

### Day 2:&#x20;

9,980 $XBPro tokens are minted, marking a decrease of 0.2% from Day 1.&#x20;

Emma contributes 0 batches on Day 2.&#x20;

Lucas joins and contributes 50 batches (0.5 $BNB + 200 CAKE).&#x20;

Total batches for Day 2: 50&#x20;

Emma doesn't receive additional XBPro rewards since she didn't contribute any batches.

Lucas's rewards on Day 2 are calculated as follows: 9,980 $XBPro \* (50/50) = 9,980 $XBPro.

The BNB Pool on Day 2 contains 0.5 $BNB from Lucas's batches.&#x20;

0.45 $BNB is distributed to participants and stakers, and 0.05 $BNB goes to the team for administrative costs.&#x20;

Since Emma has 10,000 staked $XBPro tokens and Lucas has 9,980 staked $XBPro tokens, the $BNB rewards will be distributed proportionally:&#x20;

Emma's BNB rewards on Day 2 = 0.45 $BNB \* (10,000 / (10,000 + 9,980)) ≈ 0.22503 $BNB \
Lucas's BNB rewards on Day 2 = 0.45 $BNB \* (9,980 / (10,000 + 9,980)) ≈ 0.22497 $BNB&#x20;

At the end of Day 2, Emma has a total of 10,000 staked $XBPro tokens and has earned 0.9 $BNB (from Day 1) + 0.22503 $BNB (from Day 2) = 1.12503 $BNB.&#x20;

Lucas has 9,980 staked $XBPro tokens and has earned 0.22497 $BNB. 200 CAKE tokens are burned.

### Day 3

Emma and Lucas do not contribute any new batches on this day.&#x20;

Mia steps in and contributes 33 batches (0.33 $BNB + 132 CAKE).&#x20;

The total batches for Day 3 are 33.&#x20;

As Emma and Lucas did not contribute any batches on this day, they do not receive any additional $XBPro rewards.&#x20;

Mia's rewards on Day 3 are calculated as follows: \~9,960.2 $XBPro \* (1/1) = \~9,960.2 $XBPro.&#x20;

The BNB pool on Day 3 contains 0.33 $BNB from Mia's batches.&#x20;

0.297 $BNB gets distributed among participants and stakers, while 0.033 $BNB is set aside for the team to cover administrative costs.&#x20;

Given that Emma has 10,000 staked $XBPro tokens, Lucas has 9,980 staked $XBPro tokens, and Mia now has \~9,960.2 staked $XBPro tokens, the $BNB rewards are distributed proportionally: Emma's BNB rewards on Day 3 = 0.297 $BNB \* (10,000 / (10,000 + 9,980 + \~9,960.2)) ≈ 0.09900 $BNB \
Lucas's BNB rewards on Day 3 = 0.297 $BNB \* (9,980 / (10,000 + 9,980 + \~9,960.2)) ≈ 0.09899 $BNB \
Mia's BNB rewards on Day 3 = 0.297 $BNB \* (\~9,960.2 / (10,000 + 9,980 + \~9,960.2)) ≈ 0.09901 $BNB&#x20;

Despite joining on the third day, Mia has nearly **the same "reward power"** as Emma and Lucas who joined on the first and second days!

### Day 517

Let's assume that Emma, Lucas, and Mia have stopped participating in the protocol, and their supply of $XBPro remains fixed (10,000 / 9,980 / \~9,960.2).&#x20;

Also, suppose that each day, there will be at least 10 batches from all users (0.1 $BNB + 40 CAKE per cycle).&#x20;

With these assumptions, every cycle will issue $XBPro into circulation.&#x20;

After 517 days, the staked $XBPro from Emma, Lucas, and Mia will be less than 1% of the total $XBPro in circulation, meaning that the rewards diminish as time goes by.&#x20;

(Estimated $XBPro in circulation after 517 days: \~2,994,020.2 $XBPro).

**Conclusion:** new investors may get more rewards than old investors.

<figure><img src="https://1021592375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmROgx3RVUC7gFKpCRPQE%2Fuploads%2FXQkJZFLBYTV4dAberUsN%2Ftable.jpg?alt=media&amp;token=8bd57972-beec-4fdd-8236-f9cb4e755878" alt=""><figcaption></figcaption></figure>
