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

Contribution: Bug Fixed at token hierarchy status
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-07-28 06:20:43 -04:00
commit 9b65fc77a6
3 files changed
+1188 -2052

No files matched your search

+85 -114
View File
@@ -1,7 +1,7 @@
{
"type": "Pools",
"name": "Superalgos",
"config": "{\"tokens\":\"20000000\",\"codeName\":\"Superalgos\"}",
"config": "{\"tokens\":\"40960000\",\"codeName\":\"Superalgos\"}",
"project": "Governance",
"poolClasses": [
{
@@ -1424,14 +1424,14 @@
"poolClasses": [
{
"type": "Pool Class",
"name": "Fisrt SA Token Listing",
"name": "CMC Top 10 Exchange SA Token Listing",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [
{
"type": "Pool",
"name": "For The Exchange",
"name": "For the Exchange and/or Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
@@ -1439,42 +1439,12 @@
"id": "018f1bfc-c56a-4c25-8624-5822809449a2",
"savedPayload": {
"position": {
"x": 25084.652987491874,
"y": 30062.901760147506
"x": 25068.438021998492,
"y": 30060.066503677146
},
"targetPosition": {
"x": 25162.29870102263,
"y": 30352.679508034227
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 3,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Pool",
"name": "For Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [],
"id": "607b4bee-2d75-4842-a5de-1eacc7dc0150",
"savedPayload": {
"position": {
"x": 25239.94441455339,
"y": 30062.901760147506
},
"targetPosition": {
"x": 25162.29870102263,
"y": 30352.679508034227
"x": 25115.368361510562,
"y": 30356.373005855687
},
"floatingObject": {
"isPinned": false,
@@ -1493,8 +1463,8 @@
"id": "3c035245-67cc-4657-9c32-626ea88c0423",
"savedPayload": {
"position": {
"x": 25162.29870102263,
"y": 30352.679508034227
"x": 25115.368361510562,
"y": 30356.373005855687
},
"targetPosition": {
"x": 25162.29870102263,
@@ -1515,14 +1485,14 @@
},
{
"type": "Pool Class",
"name": "Second SA Token Listing",
"name": "CMC Top 50 Exchange SA Token Listing",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [
{
"type": "Pool",
"name": "For The Exchange",
"name": "For the Exchange and/or Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
@@ -1530,42 +1500,12 @@
"id": "668d3f18-41dd-4c13-b057-a7916316c19a",
"savedPayload": {
"position": {
"x": 25524.430735378595,
"y": 30180.73985254293
"x": 25434.69300086636,
"y": 30118.075593521207
},
"targetPosition": {
"x": 25374.430735378595,
"y": 30440.547473678263
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 3,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Pool",
"name": "For Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [],
"id": "aa157869-196c-48a9-beef-439a859e3438",
"savedPayload": {
"position": {
"x": 25634.238356513928,
"y": 30290.547473678263
},
"targetPosition": {
"x": 25374.430735378595,
"y": 30440.547473678263
"x": 25298.495850944495,
"y": 30385.377550777717
},
"floatingObject": {
"isPinned": false,
@@ -1584,8 +1524,8 @@
"id": "738ea920-0ca8-4e64-b460-0b2fc9b9f9e7",
"savedPayload": {
"position": {
"x": 25374.430735378595,
"y": 30440.547473678263
"x": 25298.495850944495,
"y": 30385.377550777717
},
"targetPosition": {
"x": 25162.29870102263,
@@ -1606,14 +1546,14 @@
},
{
"type": "Pool Class",
"name": "Third SA Token Listing",
"name": "CMC Top 100 Exchange SA Token Listing",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [
{
"type": "Pool",
"name": "For The Exchange",
"name": "For the Exchange and/or Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
@@ -1621,42 +1561,12 @@
"id": "53e2bf54-b312-417a-9a32-ca6b21046a87",
"savedPayload": {
"position": {
"x": 25752.076448909353,
"y": 30575.03379450347
"x": 25696.90261553565,
"y": 30380.2852081905
},
"targetPosition": {
"x": 25462.29870102263,
"y": 30652.679508034227
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 3,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Pool",
"name": "For Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [],
"id": "68658a7c-2f2e-4157-9897-0e07b5757e21",
"savedPayload": {
"position": {
"x": 25752.076448909353,
"y": 30730.325221564985
},
"targetPosition": {
"x": 25462.29870102263,
"y": 30652.679508034227
"x": 25429.60065827914,
"y": 30516.482358112364
},
"floatingObject": {
"isPinned": false,
@@ -1675,9 +1585,70 @@
"id": "e363d7d2-9c3b-49ce-aca4-f2f4c606f035",
"savedPayload": {
"position": {
"x": 25462.29870102263,
"x": 25429.60065827914,
"y": 30516.482358112364
},
"targetPosition": {
"x": 25162.29870102263,
"y": 30652.679508034227
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Pool Class",
"name": "CMC Top 500 Exchange SA Token Listing",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [
{
"type": "Pool",
"name": "For the Exchange and/or Facilitators",
"config": "{}",
"project": "Governance",
"poolClasses": [],
"pools": [],
"id": "b3e92f4c-cf21-4e88-a331-cc07ead6a242",
"savedPayload": {
"position": {
"x": 25754.911705379713,
"y": 30746.540187058366
},
"targetPosition": {
"x": 25458.605203201172,
"y": 30699.609847546297
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"id": "88e61906-b259-4dd4-b505-1692dbf17863",
"savedPayload": {
"position": {
"x": 25458.605203201172,
"y": 30699.609847546297
},
"targetPosition": {
"x": 25162.29870102263,
"y": 30652.679508034227
File diff suppressed because it is too large. Load diff
@@ -164,21 +164,24 @@ function newGovernanceFunctionLibraryTokens() {
}
function drawTokenFlow(node, tokens, weight) {
if (tokens.toFixed === undefined) { return }
if (node.payload === undefined) { return }
tokens = tokens | 0
let status
if (weight !== undefined && weight !== 0) {
status = parseFloat(tokens.toFixed(0)).toLocaleString('en')
status = tokens.toLocaleString('en')
+ ' ' + 'SA Tokens Reward' + ' - ' + 'Weight: ' + (weight * 100).toFixed(2) + " %"
} else {
status = parseFloat(tokens.toFixed(0)).toLocaleString('en')
+ ' ' + 'SA Tokens Reward'
}
if (node.payload !== undefined) {
node.payload.uiObject.statusAngleOffset = 0
node.payload.uiObject.statusAtAngle = true
node.payload.uiObject.setStatus(status)
} else {
status = tokens.toLocaleString('en')
+ ' ' + 'SA Tokens Reward'
node.payload.uiObject.statusAngleOffset = 0
node.payload.uiObject.statusAtAngle = false
node.payload.uiObject.setStatus(status)
}
}