Get Started
The following guide will help you to set up a project where you have an app in the VeBetterDAO ecosystem, that participates in weekly allocation voting rounds, receives B3TR tokens at the start of each new round, and can distribute those rewards to users.
To enhance the transparency of the VeBetterDAO 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.
Design Patterns
There are at least 3 design patterns that you can implement to join the VeBetterDAO ecosystem, allowing you maximum freedom on how to handle sustainable action submissions and reward distribution:
Pattern 1: A smart contract that handles user submissions and reward claiming, no backend involved (eg: Cleanify)
Pattern 2: A backend that handles user submissions and uses a smart contract to send rewards (eg: Mugshot, Greencart, X-App-Template)
Pattern 3: A backend that handles both the user submissions and the rewards distribution (eg: Green Ambassador Challenge, Oily, Vyvo)
Testing
To test your app you will need to have:
a valid
APP_ID
in theX2EarnApps
contract (which means your app needs to exist)an ERC-20 token that simulates
B3TR
some B3TR tokens in the
X2EarnRewardsPool
that your APP_ID is allowed to distribute
Read the Test Environment section to see how to do it.The following guide will help you to set up a project where you have an app in the VeBetterDAO ecosystem, that participates in weekly allocation voting rounds, receives B3TR tokens at the start of each new round, and can distribute those rewards to users.
Last updated