Governance Claims Bug Fixed. Min includes claimsPower

This commit is contained in:
Luis Fernando Molina committed 2021-06-22 14:45:44 +02:00
1 parent 726834e7c7
commit 8272d1dc13
1 file changed
+2 -1
@@ -266,7 +266,8 @@ function newGovernanceFunctionLibraryClaimsProgram() {
node.payload.claimsProgram.awarded.tokens =
Math.min(
node.payload.votes / node.payload.referenceParent.payload.votes * node.payload.referenceParent.payload.tokens * votesRatio,
node.payload.votes
node.payload.votes,
programPower
)
node.payload.claimsProgram.awarded.percentage = node.payload.claimsProgram.awarded.tokens / node.payload.referenceParent.payload.tokens * 100