Files
Superalgos/Projects/Governance/Schemas/Docs-Concepts/claim.json
T

65 lines
3.2 KiB
JSON

{
"type": "Claim",
"definition": {
"text": "The token distribution is based on claims made by contributors that they have done something for the project. Anyone can make a claim, but without votes from the community, that claim will not be rewareded with tokens. ",
"updated": 1623007004449
},
"paragraphs": [
{
"style": "Block",
"text": "Claim Explained",
"updated": 1623007932348
},
{
"style": "Text",
"text": "Assets, Features, Positions, etc. defines rewards offered to contributors by the community. Contributors later needs to make claims to get those rewards, and it is the same community the one who desides which claims to support with their votes."
},
{
"style": "Title",
"text": "How does this work?"
},
{
"style": "List",
"text": "1. Weight Votes: The community uses Weight Votes to define what is more important. "
},
{
"style": "List",
"text": "2. Weights: These Weight Votes: end up generating a weight for each relevant node."
},
{
"style": "List",
"text": "3. Token Rewards: Based on Weights, Token Rewards are calculated. ",
"updated": 1623007443739
},
{
"style": "List",
"text": "4. Claims: Contributos post claims towards Token Rewards."
},
{
"style": "List",
"text": "5. Claims Votes: The community vote on claims that believe are true."
},
{
"style": "List",
"text": "6. Token Awarded: Based on all claims towards each Token Rewards, Token Awarded is calculated for each Claim.",
"updated": 1623007602133
},
{
"style": "List",
"text": "7. Token Distribution: The distribution is made to users based on the Tokens Awarded to each of their claims."
},
{
"style": "Title",
"text": "Calculation Code"
},
{
"style": "Javascript",
"text": "/*\nWe will use the concept of Vote Ratio for the situation in which the total votes in claims exeeds the\namount of votes for wigthing. When this happen the Votes Ratio will be used to redude the amount of \ntokens awarded proportionally to how much was exeeded.\n*/\nlet votesRatio = node.payload.referenceParent.payload.votes / node.payload.referenceParent.payload.claimsVotes\nif (votesRatio > 1) { votesRatio = 1 }\n/*\n Share Count means the amount to claims pointing to the same potential tokens reward.\n*/\nlet shareCount = node.payload.referenceParent.payload.claimsCount\nlet sharePercentage = node.payload.votes * 100 / node.payload.referenceParent.payload.claimsVotes\nlet awarded = node.payload.votes / node.payload.referenceParent.payload.votes * node.payload.referenceParent.payload.tokens * votesRatio\nlet awardedPercentage = node.payload.votes / node.payload.referenceParent.payload.votes * 100 * votesRatio",
"updated": 1623007674072
},
{
"style": "Text",
"text": ""
}
]
}