Inspiration
Rewards are a great way to drive user engagement. Adding rewards to an app can be quite complicated for web2 devs. We wanted to make it simple for them to add crypto rewards to their app without having to deal with Smart Contracts and on chain code.
What it does
With X-to-Earn, you can add crypto rewards to your app in 3 easy steps: 1 - Create a Rewards Program on the dashboard. Add Rewards to the Reward Program. Define the amount and max. limit for each Reward. 2- Deposit tokens that will be required to pay the Rewards you defined. The Rewards Program will then be automatically deployed to the chain as a Smart Contract. 3 - Pay Users the Rewards directly from your app via our JavaScript SDK.
How we built it
With a lot of love and code :)
Seriously tho, our Dashboard lets people define and add Rewards and Reward Programs. Each Reward program is then automatically deployed as a Smart Contract on a sub-account by our Main Smart Contract. One can then ping this contract to pay out rewards to their Users via the xtoearn-near-sdk
Challenges we ran into
Creating the design for the Smart Contract which then creates and deploys sub contracts for rewards along with ensuring user security was a bit tricky.
Making the entire system decentralized i.e. no API keys, no centralized storage of Keys was a fun problem to solve.
With our current design the users own their keys and can withdraw the rewards amount anytime. This way they can deploy, pay and withdraw rewards at their will.
Accomplishments that we're proud of
Going live on Testnet! (Mainnet soon)
Built a React Dashboard that lets users manage their Rewards and Reward Programs
Deploying a SDK to npm which you can install with npm install xtoearn-near-sdk
Writing the Documentation!
What we learned
Building in blockchain can be extremely easy if you understand the fundamentals of programming and think about design from first principles.
What's next for X-to-Earn
We want to go live on NEAR Mainnet. Add functionality to distribute NFTs via SDK Add support for other chains Add functionality to allow users to create their own Tokens and use that in their apps
Track - Web2 to Web3 – bootstrapping “traditional” apps and tools on blockchain
Built With
- javascript
- near
- react


Log in or sign up for Devpost to join the conversation.