Skip to content

Instantly share code, notes, and snippets.

@Gintonik
Created August 30, 2022 12:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gintonik/e7542bcdb4cb4878146fd26c0c642412 to your computer and use it in GitHub Desktop.
Save Gintonik/e7542bcdb4cb4878146fd26c0c642412 to your computer and use it in GitHub Desktop.
Proposal Reward Distributor (Realms)
Proposal Reward Distributor (Realms)
Context:
"The Grape DAO wants to encourage the submission of value-adding proposals on-chain. We want to be able to distribute (reward with) voting power ($GRAPE) to all successful proposals in order to increase the appeal of submitting them in Realms"
This proposal aims to provide more incentives for people to participate in Grape governance, while at the same time keep things moving forward for the Grape DAO.
Realms Instruction:
Create a new proposal and select the instruction “Proposal Rewards”
Choose the duration of the event (e.g. 30 days)
Choose the amount of $GRAPE that will be rewarded at the end of the period
Choose the realms vault that holds this asset
Submit the proposal to be voted on
Instruction outcome:
Assuming the vote has been successful
The program holds the $GRAPE for the duration (30 days)
At the end of the period, the program will distribute grape to the addresses connected to all Successful proposals (that include at least one instruction).
The amount of $GRAPE sent to each address should follow: “Amount of Grape in the Program” divided by “Number of Successful proposals”
Example: 30-day duration event, 1.000.000 $GRAPE locked
Assumption: 20 successful proposals were submitted in realms during those 30 days
Outcome: At the end of the 30 days, each address connected to a successful proposal receives: 1.000.000 / 20 = 50.000 $GRAPE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment