For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reward Distribution

To enhance the transparency of the VeBetter platform and x2earn apps, following also the "dApp Tracker" proposal, we have developed a centralized reward distributor contract. This contract must be used by the apps to ensure that every transfer of a B3TR token related to a sustainable action is publicly tracked and accessible to the community.

You need to call this contract to distribute the rewards.

Round Attribution

By default, when you distribute a reward, the action is recorded in the current round. If your app allows users to accumulate actions and claim them later, the action will be attributed to the round when the claim happens — not when the action was performed.

To attribute actions to the correct round, use the ForRound variants of the distribution functions. These accept an additional actionRound parameter (the round ID when the action was actually performed):

  • distributeRewardForRound

  • distributeRewardWithProofForRound

  • distributeRewardWithProofAndMetadataForRound

The actionRound must be greater than 0.

JavaScriptSolidity

Last updated

Was this helpful?