Governance Bug Fixed with #2 appearing at Bonus
This commit is contained in:
1 parent
dab1361cf5
commit
7ee7235d1e
5 files changed
+8
-7
No files matched your search
@@ -46,7 +46,7 @@ function newGovernanceReportsUserProfiles() {
|
|||||||
"type": "number",
|
"type": "number",
|
||||||
"order": "descending",
|
"order": "descending",
|
||||||
"textAlign": "center",
|
"textAlign": "center",
|
||||||
"format": "2 decimals"
|
"format": "integer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "delegatedPower",
|
"name": "delegatedPower",
|
||||||
@@ -54,7 +54,7 @@ function newGovernanceReportsUserProfiles() {
|
|||||||
"type": "number",
|
"type": "number",
|
||||||
"order": "descending",
|
"order": "descending",
|
||||||
"textAlign": "center",
|
"textAlign": "center",
|
||||||
"format": "2 decimals"
|
"format": "integer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tokenPower",
|
"name": "tokenPower",
|
||||||
@@ -62,7 +62,7 @@ function newGovernanceReportsUserProfiles() {
|
|||||||
"type": "number",
|
"type": "number",
|
||||||
"order": "descending",
|
"order": "descending",
|
||||||
"textAlign": "center",
|
"textAlign": "center",
|
||||||
"format": "2 decimals"
|
"format": "integer"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ function newGovernanceReportsVotes() {
|
|||||||
if (program === undefined) { continue }
|
if (program === undefined) { continue }
|
||||||
if (program.payload === undefined) { continue }
|
if (program.payload === undefined) { continue }
|
||||||
if (program.payload[programPropertyName] === undefined) { continue }
|
if (program.payload[programPropertyName] === undefined) { continue }
|
||||||
|
if (program.payload[programPropertyName].bonus === undefined) { continue }
|
||||||
|
|
||||||
let tableRecord = {
|
let tableRecord = {
|
||||||
"name": userProfile.name,
|
"name": userProfile.name,
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function newGovernanceUserProfileSpace() {
|
|||||||
/*
|
/*
|
||||||
Here we will setup the Reputation for each profile.
|
Here we will setup the Reputation for each profile.
|
||||||
*/
|
*/
|
||||||
timer = timer + 15000
|
timer = timer + 10000
|
||||||
waitingForResponses++
|
waitingForResponses++
|
||||||
getTreasuryAccountTransactions()
|
getTreasuryAccountTransactions()
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ function newGovernanceUtilitiesConversions () {
|
|||||||
return thisObject
|
return thisObject
|
||||||
|
|
||||||
function estimateSATokensInBTC(SATokens) {
|
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
|
const BTC = SATokens * SA_BTC_BASELINE_EXCHANGE_RATE
|
||||||
|
|
||||||
return BTC.toFixed(3)
|
return BTC.toFixed(3)
|
||||||
|
|||||||
@@ -141,11 +141,11 @@ function newGovernanceUtilitiesTables() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'integer': {
|
case 'integer': {
|
||||||
value = parseFloat(value | 0).toLocaleString('en')
|
value = parseFloat(parseFloat(value | 0).toFixed(0)).toLocaleString('en')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case '2 decimals': {
|
case '2 decimals': {
|
||||||
value = parseFloat(value | 2).toLocaleString('en')
|
value = parseFloat(parseFloat(value | 0).toFixed(2)).toLocaleString('en')
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
case 'percentage': {
|
case 'percentage': {
|
||||||
|
|||||||
Reference in new issue
Block a user