Merge pull request #2407 from Luis-Fernando-Molina/develop

Contribution: Governance Bug Fixed with Reputation Calculation 2
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-10-31 07:51:05 -04:00
commit f1feb86c4d
1 file changed
+1 -3
@@ -150,9 +150,7 @@ function newGovernanceUserProfileSpace() {
if (transfer.from !== UI.projects.governance.globals.saToken.SA_TOKEN_BSC_TREASURY_ACCOUNT_ADDRESS) { continue }
let currentReputation = Number(transfer.value) / UI.projects.governance.globals.saToken.SA_TOKEN_BSC_DECIMAL_FACTOR
if (transfer.to.toLowerCase() === '0x9F25cc5f3e70b907269CebbB45D812313b3e9143'.toLowerCase()) {
console.log('COZED')
}
let previousReputation = reputationByAddress.get(transfer.to.toLowerCase())
if (previousReputation === undefined) {previousReputation = 0}
let newReputation = previousReputation + currentReputation