Create a rewards contract
What is a Rewards contract?
A rewards contract represents a unique smart contract on the blockchain that will be in charge of maintaining a balance, allocating and distributing rewards in the cryptocurrency of your choice to your users.
When you create a rewards contract, Original deploys a unique and secured smart contract on the blockchain (testnet or mainnet depending on the environment you are in) that will execute allocation (distribution) and claim (transfer) on your demand.
In order to start allocating rewards you first need to create a rewards contract via your developer console.
Note:
In order to create a rewards contract you first need to create an app.
The rewards feature is only available in certain plan. For more info check our page pricing
Create Rewards contract
To create a rewards contract, go to an App > rewards > Contracts and click on the button Create contract
When creating a reward you will be asked to enter:
Reward information with:
- A Name: Defines the name for your rewards contract. This name should be unique per rewards contract per app.
- A Description: Defines the description of your reward contract.
Advanced settings with:
- A Token: Defines the token that will be used for allocations and claims in your rewards contract.
- A Withdraw funds recipient address: Defines the address that will receive the remaining funds if you decide to terminate and close the rewards contract.
Development Apps using Original testnet token: TORI
For Development Apps, only the TORI (the Original testnet token) is available. Testnet rewards contracts will be pre-filled with TORI so you focus on testing the API.
No withdraw funds recipient address will be asked as it's not a token that you will need to deposit.
That's it, your rewards contract is deploying on the blockchain!
Note:
- Deploying a rewards contract can take a few minutes depending on the blockchain network.
- When the status is "Live" it means that your rewards contract is deployed on the blockchain.
Congratulations! You have deployed a Rewards contract on the blockchain!
Updated 4 months ago