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

Contribution: Governance Bug Fixed with #2 appearing at Bonus
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-08-19 04:12:26 -04:00
commit 228c102ffc
5 files changed
+8 -7

No files matched your search

@@ -46,7 +46,7 @@ function newGovernanceReportsUserProfiles() {
"type": "number",
"order": "descending",
"textAlign": "center",
"format": "2 decimals"
"format": "integer"
},
{
"name": "delegatedPower",
@@ -54,7 +54,7 @@ function newGovernanceReportsUserProfiles() {
"type": "number",
"order": "descending",
"textAlign": "center",
"format": "2 decimals"
"format": "integer"
},
{
"name": "tokenPower",
@@ -62,7 +62,7 @@ function newGovernanceReportsUserProfiles() {
"type": "number",
"order": "descending",
"textAlign": "center",
"format": "2 decimals"
"format": "integer"
}
]
}
@@ -101,6 +101,7 @@ function newGovernanceReportsVotes() {
if (program === undefined) { continue }
if (program.payload === undefined) { continue }
if (program.payload[programPropertyName] === undefined) { continue }
if (program.payload[programPropertyName].bonus === undefined) { continue }
let tableRecord = {
"name": userProfile.name,
@@ -70,7 +70,7 @@ function newGovernanceUserProfileSpace() {
/*
Here we will setup the Reputation for each profile.
*/
timer = timer + 15000
timer = timer + 10000
waitingForResponses++
getTreasuryAccountTransactions()
@@ -6,7 +6,7 @@ function newGovernanceUtilitiesConversions () {
return thisObject
function estimateSATokensInBTC(SATokens) {
const SA_BTC_BASELINE_EXCHANGE_RATE = 1.5 / 1000000
const SA_BTC_BASELINE_EXCHANGE_RATE = 1.0 / 1000000
const BTC = SATokens * SA_BTC_BASELINE_EXCHANGE_RATE
return BTC.toFixed(3)
+2 -2
View File
@@ -141,11 +141,11 @@ function newGovernanceUtilitiesTables() {
break
}
case 'integer': {
value = parseFloat(value | 0).toLocaleString('en')
value = parseFloat(parseFloat(value | 0).toFixed(0)).toLocaleString('en')
break
}
case '2 decimals': {
value = parseFloat(value | 2).toLocaleString('en')
value = parseFloat(parseFloat(value | 0).toFixed(2)).toLocaleString('en')
break
}
case 'percentage': {