Reward Distribution
Last updated
Was this helpful?
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.
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.
Last updated
Was this helpful?
Was this helpful?