Governance Bug Fixed Not Finding Token Rewards when multiple Pools present at workspace

This commit is contained in:
Luis Fernando Molina committed 2021-08-01 12:31:56 +02:00
1 parent df523c7f3f
commit 9b8fc29991
13 files changed
+1325 -237

No files matched your search

@@ -17,10 +17,11 @@ function newGovernanceFunctionLibraryGithubProgram() {
*/
let accumulatedProgramPower = 0
/* Scan Pools Until finding the Mentoship-Program Pool */
/* Scan Pools Until finding the Pool for this program*/
for (let i = 0; i < pools.length; i++) {
let poolsNode = pools[i]
programPoolTokenReward = UI.projects.governance.utilities.pools.findPool(poolsNode, "Github-Rewards")
if (programPoolTokenReward !== undefined) { break }
}
if (programPoolTokenReward === undefined || programPoolTokenReward === 0) { return }