Onboard the Reward Distributor (NEW)
For project owners
Last updated
Was this helpful?
For project owners
Last updated
Was this helpful?
There are two samples depending on your preferred distribution method โ minting or transfers.
You will need to set things such as the amount of tokens to be distributed, token details, and the distributor you've deployed in step 1.
After ZilSwap creates the distribution for that week's epoch, a merkle tree will be generated of which the root needs to be set on the deployed distributor contract which will enable that week's claims.
You may reach your distribution by going to: https://stats.zilswap.org/distribution/data/{distributor_address}/{epoch}
The last hash in the series of proofs for each wallet address in that distribution is the merkle root, which you'll see is the same for each wallet. With that you can set the merkle root on the distributor with the following values:
Epoch: 0
Merkle root: 0xthemerklerootretrievesfromthedistributionendpoint
(note: 0x
has been added in front of the root)
For minting: Refer to ZWAP's distributor for tokens
For transfers: Refer to STREAM's distributor
You will need to add the above distribution details to the following file:
You may use this template as a reference when raising your PR:
The following is a sample script available through which this weekly process can be automated: