From 09ec03870066c4ecacf82a1ad48ed38109012d5a Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 30 Jul 2021 08:49:59 +0200 Subject: [PATCH] BTC Baseline price implemented --- .../Governance/Plugins/Pools/Superalgos.json | 101 +-- .../User-Profiles/Luis-Fernando-Molina.json | 744 +++++++----------- .../UI/Function-Libraries/ClaimsProgram.js | 5 +- .../UI/Function-Libraries/GithubProgram.js | 3 +- .../UI/Function-Libraries/StakingProgram.js | 3 +- .../UI/Function-Libraries/TokenMining.js | 3 +- .../UI/Function-Libraries/Tokens.js | 9 +- .../Governance/UI/Utilities/BonusProgram.js | 3 +- .../Governance/UI/Utilities/Conversions.js | 2 +- .../UI/Utilities/DecendentProgram.js | 3 +- 10 files changed, 338 insertions(+), 538 deletions(-) diff --git a/Projects/Governance/Plugins/Pools/Superalgos.json b/Projects/Governance/Plugins/Pools/Superalgos.json index 818776358..4d1c047c1 100644 --- a/Projects/Governance/Plugins/Pools/Superalgos.json +++ b/Projects/Governance/Plugins/Pools/Superalgos.json @@ -1223,7 +1223,7 @@ "floatingObject": { "isPinned": false, "isFrozen": false, - "isCollapsed": true, + "isCollapsed": false, "angleToParent": 2, "distanceToParent": 3, "arrangementStyle": 0 @@ -1490,7 +1490,7 @@ "floatingObject": { "isPinned": false, "isFrozen": false, - "isCollapsed": true, + "isCollapsed": false, "angleToParent": 1, "distanceToParent": 3, "arrangementStyle": 0 @@ -1833,12 +1833,12 @@ "id": "018f1bfc-c56a-4c25-8624-5822809449a2", "savedPayload": { "position": { - "x": 25068.438021998492, - "y": 30060.066503677146 + "x": 25162.29870102263, + "y": 30052.679508034227 }, "targetPosition": { - "x": 25115.368361510562, - "y": 30356.373005855687 + "x": 25162.29870102263, + "y": 30352.679508034227 }, "floatingObject": { "isPinned": false, @@ -1857,8 +1857,8 @@ "id": "3c035245-67cc-4657-9c32-626ea88c0423", "savedPayload": { "position": { - "x": 25115.368361510562, - "y": 30356.373005855687 + "x": 25162.29870102263, + "y": 30352.679508034227 }, "targetPosition": { "x": 25162.29870102263, @@ -1894,12 +1894,12 @@ "id": "668d3f18-41dd-4c13-b057-a7916316c19a", "savedPayload": { "position": { - "x": 25434.69300086636, - "y": 30118.075593521207 + "x": 25586.56276973456, + "y": 30228.4154393223 }, "targetPosition": { - "x": 25298.495850944495, - "y": 30385.377550777717 + "x": 25374.430735378595, + "y": 30440.547473678263 }, "floatingObject": { "isPinned": false, @@ -1918,8 +1918,8 @@ "id": "738ea920-0ca8-4e64-b460-0b2fc9b9f9e7", "savedPayload": { "position": { - "x": 25298.495850944495, - "y": 30385.377550777717 + "x": 25374.430735378595, + "y": 30440.547473678263 }, "targetPosition": { "x": 25162.29870102263, @@ -1955,12 +1955,12 @@ "id": "53e2bf54-b312-417a-9a32-ca6b21046a87", "savedPayload": { "position": { - "x": 25696.90261553565, - "y": 30380.2852081905 + "x": 25762.29870102263, + "y": 30652.679508034227 }, "targetPosition": { - "x": 25429.60065827914, - "y": 30516.482358112364 + "x": 25462.29870102263, + "y": 30652.679508034227 }, "floatingObject": { "isPinned": false, @@ -1979,70 +1979,9 @@ "id": "e363d7d2-9c3b-49ce-aca4-f2f4c606f035", "savedPayload": { "position": { - "x": 25429.60065827914, - "y": 30516.482358112364 - }, - "targetPosition": { - "x": 25162.29870102263, + "x": 25462.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 @@ -2100,7 +2039,7 @@ "floatingObject": { "isPinned": false, "isFrozen": false, - "isCollapsed": true, + "isCollapsed": false, "angleToParent": 1, "distanceToParent": 3, "arrangementStyle": 0 diff --git a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json index 6628e39fc..eeec10a30 100644 --- a/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json +++ b/Projects/Governance/Plugins/User-Profiles/Luis-Fernando-Molina.json @@ -682,12 +682,12 @@ "id": "fab06034-f9bc-429d-8439-a18c6dd27d26", "savedPayload": { "position": { - "x": 30740.851904070056, - "y": 24241.533293794746 + "x": 30718.457321935, + "y": 24260.830404862332 }, "targetPosition": { - "x": 31033.740706206037, - "y": 24176.601409613315 + "x": 31004.572407159467, + "y": 24351.042144713614 }, "floatingObject": { "isPinned": false, @@ -715,12 +715,12 @@ "id": "400c9224-b11d-4884-a95b-464d17fbbe7b", "savedPayload": { "position": { - "x": 30831.063643921338, - "y": 23955.418208570278 + "x": 30939.640522978036, + "y": 24058.153342577632 }, "targetPosition": { - "x": 31033.740706206037, - "y": 24176.601409613315 + "x": 31004.572407159467, + "y": 24351.042144713614 }, "floatingObject": { "isPinned": false, @@ -747,12 +747,12 @@ "id": "84bd53e4-7d30-4520-9469-eb29f1d51776", "savedPayload": { "position": { - "x": 31033.740706206037, - "y": 24176.601409613315 + "x": 31004.572407159467, + "y": 24351.042144713614 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -787,12 +787,12 @@ "id": "f2b1cb17-c4d6-45aa-93a4-cdeb1981e018", "savedPayload": { "position": { - "x": 30784.41633093099, - "y": 24045.026863095965 + "x": 30854.43843764727, + "y": 24112.43305730065 }, "targetPosition": { - "x": 31081.849789343134, - "y": 24084.18472076198 + "x": 31092.44443973464, + "y": 24295.061486003266 }, "floatingObject": { "isPinned": false, @@ -820,12 +820,12 @@ "id": "9e0fbb4c-24e8-4d8b-b99d-6f53aaaf7275", "savedPayload": { "position": { - "x": 30967.04475963361, - "y": 23807.020861008594 + "x": 31131.602297400656, + "y": 23997.628027591123 }, "targetPosition": { - "x": 31081.849789343134, - "y": 24084.18472076198 + "x": 31092.44443973464, + "y": 24295.061486003266 }, "floatingObject": { "isPinned": false, @@ -852,12 +852,12 @@ "id": "18de29b0-82cb-4204-9d40-e2118f2b7bd7", "savedPayload": { "position": { - "x": 31081.849789343134, - "y": 24084.18472076198 + "x": 31092.44443973464, + "y": 24295.061486003266 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -892,12 +892,12 @@ "id": "c57386c6-3e5c-4fbc-a753-564d3ac35527", "savedPayload": { "position": { - "x": 30892.56265897299, - "y": 23875.27113175022 + "x": 31032.973770730518, + "y": 24019.493445538228 }, "targetPosition": { - "x": 31158.665908926458, - "y": 24013.79571572073 + "x": 31194.163653234566, + "y": 24272.510879282094 }, "floatingObject": { "isPinned": false, @@ -925,12 +925,12 @@ "id": "a9aee2ec-da92-4b48-9850-0e34dd6d7c75", "savedPayload": { "position": { - "x": 31145.580092716857, - "y": 23714.081249246174 + "x": 31332.688237205075, + "y": 24006.407629328627 }, "targetPosition": { - "x": 31158.665908926458, - "y": 24013.79571572073 + "x": 31194.163653234566, + "y": 24272.510879282094 }, "floatingObject": { "isPinned": false, @@ -957,12 +957,12 @@ "id": "ec42ba36-65c5-49a7-8817-7c02c731cf67", "savedPayload": { "position": { - "x": 31158.665908926458, - "y": 24013.79571572073 + "x": 31194.163653234566, + "y": 24272.510879282094 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -995,12 +995,12 @@ "id": "e2026065-7fc0-430c-89a4-1811936e1b3a", "savedPayload": { "position": { - "x": 31254.923907249075, - "y": 23973.924347328615 + "x": 31297.46120929545, + "y": 24286.110260532183 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -1035,12 +1035,12 @@ "id": "d80d891f-8359-4a27-8b10-f14ebefe35c5", "savedPayload": { "position": { - "x": 31398.171506762534, - "y": 23671.94623264031 + "x": 31572.5063268494, + "y": 24096.213341581908 }, "targetPosition": { - "x": 31359.01364909652, - "y": 23969.379691052454 + "x": 31389.877898146784, + "y": 24334.21934366928 }, "floatingObject": { "isPinned": false, @@ -1067,12 +1067,12 @@ "id": "ef261c93-c299-4b80-a15e-36c01f9f6be5", "savedPayload": { "position": { - "x": 31359.01364909652, - "y": 23969.379691052454 + "x": 31389.877898146784, + "y": 24334.21934366928 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -1107,12 +1107,12 @@ "id": "5e206138-14bb-4510-b36e-ae4cd12511bd", "savedPayload": { "position": { - "x": 31596.904959371524, - "y": 23734.606649557663 + "x": 31713.284336931898, + "y": 24249.845580748555 }, "targetPosition": { - "x": 31458.380375401015, - "y": 24000.70989951113 + "x": 31460.266903188032, + "y": 24411.035463252603 }, "floatingObject": { "isPinned": false, @@ -1139,12 +1139,12 @@ "id": "2b6b4ecd-35b7-46c1-a4ad-df3e687b10f8", "savedPayload": { "position": { - "x": 31458.380375401015, - "y": 24000.70989951113 + "x": 31460.266903188032, + "y": 24411.035463252603 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -1179,12 +1179,12 @@ "id": "b8a917e0-c6f9-48df-b96e-6c7fd1791a7e", "savedPayload": { "position": { - "x": 31762.22219351658, - "y": 23861.459024895197 + "x": 31793.02707371613, + "y": 24442.36157739379 }, "targetPosition": { - "x": 31541.038992473543, - "y": 24064.136087179897 + "x": 31500.13827158015, + "y": 24507.29346157522 }, "floatingObject": { "isPinned": false, @@ -1211,12 +1211,12 @@ "id": "4591951d-e485-4d9b-96e1-c7903228a197", "savedPayload": { "position": { - "x": 31541.038992473543, - "y": 24064.136087179897 + "x": 31500.13827158015, + "y": 24507.29346157522 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -1251,12 +1251,12 @@ "id": "e26cdea4-a4a2-4c87-af43-8ae20bd3ef48", "savedPayload": { "position": { - "x": 31874.183510937277, - "y": 24037.203090045547 + "x": 31802.11638626845, + "y": 24650.54106108868 }, "targetPosition": { - "x": 31597.01965118389, - "y": 24152.00811975507 + "x": 31504.68292785631, + "y": 24611.383203422665 }, "floatingObject": { "isPinned": false, @@ -1283,12 +1283,12 @@ "id": "0eccd6e9-e16f-4a15-84fb-cb45984ea57f", "savedPayload": { "position": { - "x": 31597.01965118389, - "y": 24152.00811975507 + "x": 31504.68292785631, + "y": 24611.383203422665 }, "targetPosition": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "floatingObject": { "isPinned": false, @@ -1316,12 +1316,12 @@ "id": "c2efd622-5218-40e2-a895-8ea7cf3b2ea8", "savedPayload": { "position": { - "x": 31319.855791430506, - "y": 24266.813149464597 + "x": 31207.249469444167, + "y": 24572.22534575665 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -1356,12 +1356,12 @@ "id": "9685c961-2bb3-4d59-b5ed-6153040eab60", "savedPayload": { "position": { - "x": 31220.47628520669, - "y": 24059.22932967165 + "x": 31224.976202335263, + "y": 24342.762731289436 }, "targetPosition": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "floatingObject": { "isPinned": false, @@ -1389,12 +1389,12 @@ "id": "0ae0df46-da0a-4187-ae65-bcfc2ff7a146", "savedPayload": { "position": { - "x": 31358.221463309957, - "y": 23987.523728578704 + "x": 31380.119826367976, + "y": 24349.53644820095 }, "targetPosition": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "floatingObject": { "isPinned": false, @@ -1422,12 +1422,12 @@ "id": "06294bb3-0cab-48d5-ad16-09bc88ff77bf", "savedPayload": { "position": { - "x": 31513.36508734267, - "y": 23994.297445490218 + "x": 31511.09128755973, + "y": 24432.97447114072 }, "targetPosition": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "floatingObject": { "isPinned": false, @@ -1455,12 +1455,12 @@ "id": "02a5a469-4b1a-4367-a0fe-b9a81300e332", "savedPayload": { "position": { - "x": 31644.336548534426, - "y": 24077.735468429986 + "x": 31582.796888652676, + "y": 24570.719649243987 }, "targetPosition": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "floatingObject": { "isPinned": false, @@ -1488,12 +1488,12 @@ "id": "2a5b7203-bac9-476e-8730-9e70729cc5fb", "savedPayload": { "position": { - "x": 31716.04214962737, - "y": 24215.480646533255 + "x": 31576.023171741163, + "y": 24725.8632732767 }, "targetPosition": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "floatingObject": { "isPinned": false, @@ -1520,12 +1520,12 @@ "id": "67cb34fd-41df-4dc3-9077-e34f8fd419d5", "savedPayload": { "position": { - "x": 31423.15334749139, - "y": 24280.412530714686 + "x": 31289.908086516694, + "y": 24635.651533425418 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -1560,12 +1560,12 @@ "id": "98450952-8469-4c04-91ba-a02452e4a31c", "savedPayload": { "position": { - "x": 31476.41217867671, - "y": 24031.08815543964 + "x": 31460.69377493657, + "y": 24446.359706247207 }, "targetPosition": { - "x": 31515.570036342724, - "y": 24328.521613851783 + "x": 31345.888745227043, + "y": 24723.523566000593 }, "floatingObject": { "isPinned": false, @@ -1593,12 +1593,12 @@ "id": "abde4aaf-6291-4267-8804-11da46d5025c", "savedPayload": { "position": { - "x": 31698.19846504534, - "y": 24090.51561176441 + "x": 31623.05260498043, + "y": 24608.718536291068 }, "targetPosition": { - "x": 31515.570036342724, - "y": 24328.521613851783 + "x": 31345.888745227043, + "y": 24723.523566000593 }, "floatingObject": { "isPinned": false, @@ -1626,12 +1626,12 @@ "id": "a5f53f00-0007-4b21-89b7-55f9f4c2be46", "savedPayload": { "position": { - "x": 31813.003494754867, - "y": 24289.36375618577 + "x": 31623.05260498043, + "y": 24838.32859571012 }, "targetPosition": { - "x": 31515.570036342724, - "y": 24328.521613851783 + "x": 31345.888745227043, + "y": 24723.523566000593 }, "floatingObject": { "isPinned": false, @@ -1658,12 +1658,12 @@ "id": "82d655e8-d519-4d16-b296-231165f4b497", "savedPayload": { "position": { - "x": 31515.570036342724, - "y": 24328.521613851783 + "x": 31345.888745227043, + "y": 24723.523566000593 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -1698,12 +1698,12 @@ "id": "abdfe787-4609-45f0-9ca2-80b7d871437d", "savedPayload": { "position": { - "x": 31572.87322517437, - "y": 24105.62326696055 + "x": 31506.963935918724, + "y": 24559.13952954705 }, "targetPosition": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "floatingObject": { "isPinned": false, @@ -1731,12 +1731,12 @@ "id": "62693b3e-2f9c-47d2-9fd7-64b811925e4b", "savedPayload": { "position": { - "x": 31724.48362535448, - "y": 24139.23448348164 + "x": 31621.45678569208, + "y": 24664.05289699647 }, "targetPosition": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "floatingObject": { "isPinned": false, @@ -1764,12 +1764,12 @@ "id": "2c18c66b-74b9-4d52-8857-a25468afaad7", "savedPayload": { "position": { - "x": 31838.976475127838, - "y": 24244.14785093106 + "x": 31668.153818422772, + "y": 24812.156963290916 }, "targetPosition": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "floatingObject": { "isPinned": false, @@ -1797,12 +1797,12 @@ "id": "5fd03b9b-39e0-48b9-ac43-e78be787f6b5", "savedPayload": { "position": { - "x": 31885.67350785853, - "y": 24392.251917225505 + "x": 31634.54260190168, + "y": 24963.767363471026 }, "targetPosition": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "floatingObject": { "isPinned": false, @@ -1830,12 +1830,12 @@ "id": "8738f49c-28f6-4512-b820-0d5826316e2f", "savedPayload": { "position": { - "x": 31852.06229133744, - "y": 24543.862317405616 + "x": 31529.629234452263, + "y": 25078.260213244383 }, "targetPosition": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "floatingObject": { "isPinned": false, @@ -1862,12 +1862,12 @@ "id": "7a8f9f8e-1e97-4009-bab8-09dd019a49a7", "savedPayload": { "position": { - "x": 31585.959041383972, - "y": 24405.337733435106 + "x": 31368.439351948215, + "y": 24825.242779500517 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -1908,12 +1908,12 @@ "id": "d7ec2b77-a91f-4ca9-a72c-a2e59cd60730", "savedPayload": { "position": { - "x": 31865.079851131235, - "y": 23951.359687126645 + "x": 31837.15408706846, + "y": 24571.646663510593 }, "targetPosition": { - "x": 31745.45513045366, - "y": 24226.477709442184 + "x": 31595.997028883292, + "y": 24750.093499535997 }, "floatingObject": { "isPinned": false, @@ -1940,12 +1940,12 @@ "id": "78a16c5d-1f6b-4b62-bba7-fbb43bb070f4", "savedPayload": { "position": { - "x": 31745.45513045366, - "y": 24226.477709442184 + "x": 31595.997028883292, + "y": 24750.093499535997 }, "targetPosition": { - "x": 31625.83040977609, - "y": 24501.595731757723 + "x": 31354.839970698125, + "y": 24928.5403355614 }, "floatingObject": { "isPinned": false, @@ -1980,12 +1980,12 @@ "id": "88bf7ea7-e39d-4961-b615-b9ef7eb14f84", "savedPayload": { "position": { - "x": 32142.807906041005, - "y": 24197.0727139813 + "x": 31954.81712453663, + "y": 24923.304414262373 }, "targetPosition": { - "x": 31884.319157908547, - "y": 24349.33422286951 + "x": 31654.828547617377, + "y": 24925.922374911886 }, "floatingObject": { "isPinned": false, @@ -2012,12 +2012,12 @@ "id": "1ebe98ee-896f-4fe3-8b09-96f4928a9c29", "savedPayload": { "position": { - "x": 31884.319157908547, - "y": 24349.33422286951 + "x": 31654.828547617377, + "y": 24925.922374911886 }, "targetPosition": { - "x": 31625.83040977609, - "y": 24501.595731757723 + "x": 31354.839970698125, + "y": 24928.5403355614 }, "floatingObject": { "isPinned": false, @@ -2052,12 +2052,12 @@ "id": "cd9d96b0-baea-4195-98c4-25ef7a3368fe", "savedPayload": { "position": { - "x": 32123.23528375096, - "y": 24305.66274127709 + "x": 31883.57172276688, + "y": 25007.559825353153 }, "targetPosition": { - "x": 31924.44926928624, - "y": 24530.349457513792 + "x": 31599.07462620502, + "y": 25102.75122227468 }, "floatingObject": { "isPinned": false, @@ -2085,12 +2085,12 @@ "id": "cdfbe5c7-5ffb-4b9e-bea3-cb2d6380716d", "savedPayload": { "position": { - "x": 32217.338071422222, - "y": 24465.41757333236 + "x": 31885.189711429488, + "y": 25192.962962125963 }, "targetPosition": { - "x": 31924.44926928624, - "y": 24530.349457513792 + "x": 31599.07462620502, + "y": 25102.75122227468 }, "floatingObject": { "isPinned": false, @@ -2118,12 +2118,12 @@ "id": "a6e034bd-f606-4419-bb77-8212993cc609", "savedPayload": { "position": { - "x": 32199.56729160178, - "y": 24649.974178191365 + "x": 31777.521462230423, + "y": 25343.908280459847 }, "targetPosition": { - "x": 31924.44926928624, - "y": 24530.349457513792 + "x": 31599.07462620502, + "y": 25102.75122227468 }, "floatingObject": { "isPinned": false, @@ -2151,12 +2151,12 @@ "id": "f82856f7-0238-4317-a7b9-834feed9d6c4", "savedPayload": { "position": { - "x": 32076.710778174453, - "y": 24788.83820564625 + "x": 31601.692586854533, + "y": 25402.739799193932 }, "targetPosition": { - "x": 31924.44926928624, - "y": 24530.349457513792 + "x": 31599.07462620502, + "y": 25102.75122227468 }, "floatingObject": { "isPinned": false, @@ -2183,12 +2183,12 @@ "id": "a389f7c8-852c-4555-9ea1-0412d236c458", "savedPayload": { "position": { - "x": 31924.44926928624, - "y": 24530.349457513792 + "x": 31599.07462620502, + "y": 25102.75122227468 }, "targetPosition": { - "x": 31625.83040977609, - "y": 24501.595731757723 + "x": 31354.839970698125, + "y": 24928.5403355614 }, "floatingObject": { "isPinned": false, @@ -2223,12 +2223,12 @@ "id": "72bfea70-9d52-4b21-84e1-a5a2129fb5dc", "savedPayload": { "position": { - "x": 32144.494537399038, - "y": 24760.1921265476 + "x": 31674.718083856354, + "y": 25411.82344658798 }, "targetPosition": { - "x": 31850.51712601279, - "y": 24700.381746222443 + "x": 31450.031367619653, + "y": 25213.03743212326 }, "floatingObject": { "isPinned": false, @@ -2256,12 +2256,12 @@ "id": "62c288b7-7833-4ba7-8591-1f9d220cccb1", "savedPayload": { "position": { - "x": 31945.708522934317, - "y": 24984.878842784303 + "x": 31390.220987294495, + "y": 25507.014843509507 }, "targetPosition": { - "x": 31850.51712601279, - "y": 24700.381746222443 + "x": 31450.031367619653, + "y": 25213.03743212326 }, "floatingObject": { "isPinned": false, @@ -2288,12 +2288,12 @@ "id": "842c29c2-1bfd-4846-9d34-c772a55421b3", "savedPayload": { "position": { - "x": 31850.51712601279, - "y": 24700.381746222443 + "x": 31450.031367619653, + "y": 25213.03743212326 }, "targetPosition": { - "x": 31625.83040977609, - "y": 24501.595731757723 + "x": 31354.839970698125, + "y": 24928.5403355614 }, "floatingObject": { "isPinned": false, @@ -2321,12 +2321,12 @@ "id": "e491d413-22d7-41d3-879c-ccc73a4280f6", "savedPayload": { "position": { - "x": 31625.83040977609, - "y": 24501.595731757723 + "x": 31354.839970698125, + "y": 24928.5403355614 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -2373,12 +2373,12 @@ "id": "d8c8d8cc-9121-4fec-83d2-9a803888ed41", "savedPayload": { "position": { - "x": 32387.600812920395, - "y": 24292.032299474286 + "x": 32119.33420781393, + "y": 25127.93828107184 }, "targetPosition": { - "x": 32204.972384217777, - "y": 24530.038301561657 + "x": 31842.170348060543, + "y": 25242.743310781367 }, "floatingObject": { "isPinned": false, @@ -2406,12 +2406,12 @@ "id": "bd187ccf-1492-4411-8365-4cafe1e77220", "savedPayload": { "position": { - "x": 32502.40584262992, - "y": 24569.19615922767 + "x": 32080.176350147914, + "y": 25425.371739483984 }, "targetPosition": { - "x": 32204.972384217777, - "y": 24530.038301561657 + "x": 31842.170348060543, + "y": 25242.743310781367 }, "floatingObject": { "isPinned": false, @@ -2438,12 +2438,12 @@ "id": "ba5749df-10e1-435c-a6ca-65771fd5cfad", "savedPayload": { "position": { - "x": 32204.972384217777, - "y": 24530.038301561657 + "x": 31842.170348060543, + "y": 25242.743310781367 }, "targetPosition": { - "x": 31927.80852446439, - "y": 24644.843331271182 + "x": 31544.7368896484, + "y": 25203.585453115353 }, "floatingObject": { "isPinned": false, @@ -2478,12 +2478,12 @@ "id": "015529e4-b721-4ec0-b766-75e04e451399", "savedPayload": { "position": { - "x": 32463.247984963906, - "y": 24866.629617639814 + "x": 31897.5479214453, + "y": 25663.377741571356 }, "targetPosition": { - "x": 32165.814526551763, - "y": 24827.4717599738 + "x": 31659.54191935793, + "y": 25480.74931286874 }, "floatingObject": { "isPinned": false, @@ -2511,12 +2511,12 @@ "id": "e0bbe325-46f1-42de-8bde-83b3478144da", "savedPayload": { "position": { - "x": 32280.61955626129, - "y": 25104.635619727185 + "x": 31620.384061691915, + "y": 25778.18277128088 }, "targetPosition": { - "x": 32165.814526551763, - "y": 24827.4717599738 + "x": 31659.54191935793, + "y": 25480.74931286874 }, "floatingObject": { "isPinned": false, @@ -2543,12 +2543,12 @@ "id": "76ded469-ce74-4296-94f5-b4a5cbc1ee32", "savedPayload": { "position": { - "x": 32165.814526551763, - "y": 24827.4717599738 + "x": 31659.54191935793, + "y": 25480.74931286874 }, "targetPosition": { - "x": 31927.80852446439, - "y": 24644.843331271182 + "x": 31544.7368896484, + "y": 25203.585453115353 }, "floatingObject": { "isPinned": false, @@ -2576,12 +2576,12 @@ "id": "10d64273-dd83-43c4-a391-7e8063e67d9d", "savedPayload": { "position": { - "x": 31927.80852446439, - "y": 24644.843331271182 + "x": 31544.7368896484, + "y": 25203.585453115353 }, "targetPosition": { - "x": 31630.37506605225, - "y": 24605.68547360517 + "x": 31306.73088756103, + "y": 25020.957024412735 }, "floatingObject": { "isPinned": false, @@ -2609,12 +2609,12 @@ "id": "f1241476-8ff9-48da-8dcc-d37c84c1da0c", "savedPayload": { "position": { - "x": 31630.37506605225, - "y": 24605.68547360517 + "x": 31306.73088756103, + "y": 25020.957024412735 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -2649,12 +2649,12 @@ "id": "4e3543b2-8be4-4a61-804d-ace0c584ee1b", "savedPayload": { "position": { - "x": 31865.14810754704, - "y": 24843.576783880173 + "x": 31391.104650481753, + "y": 25344.36346319785 }, "targetPosition": { - "x": 31599.044857593573, - "y": 24705.052199909664 + "x": 31229.914767977705, + "y": 25091.346029453984 }, "floatingObject": { "isPinned": false, @@ -2681,12 +2681,12 @@ "id": "6aed68f6-c39d-491a-88fe-0167125ab375", "savedPayload": { "position": { - "x": 31599.044857593573, - "y": 24705.052199909664 + "x": 31229.914767977705, + "y": 25091.346029453984 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -2727,12 +2727,12 @@ "id": "8ce44f3a-7519-48af-91d9-d7e98e2e7eb2", "savedPayload": { "position": { - "x": 32131.76178333076, - "y": 24719.788888721447 + "x": 31639.69163714282, + "y": 25453.597162854196 }, "targetPosition": { - "x": 31833.690226627783, - "y": 24753.74985285182 + "x": 31386.674203398954, + "y": 25292.407280350148 }, "floatingObject": { "isPinned": false, @@ -2759,12 +2759,12 @@ "id": "8f16b450-0589-4302-93b5-d886283848d8", "savedPayload": { "position": { - "x": 31833.690226627783, - "y": 24753.74985285182 + "x": 31386.674203398954, + "y": 25292.407280350148 }, "targetPosition": { - "x": 31535.618669924806, - "y": 24787.71081698219 + "x": 31133.65676965509, + "y": 25131.2173978461 }, "floatingObject": { "isPinned": false, @@ -2799,12 +2799,12 @@ "id": "674b1003-7bd9-4161-89a0-9604e951b19c", "savedPayload": { "position": { - "x": 32057.832087488743, - "y": 25083.16495304427 + "x": 31263.52053801795, + "y": 25716.995002118063 }, "targetPosition": { - "x": 31796.725378706775, - "y": 24935.43788501323 + "x": 31198.58865383652, + "y": 25424.10619998208 }, "floatingObject": { "isPinned": false, @@ -2831,12 +2831,12 @@ "id": "855e8d3f-a40c-40cc-98ed-1fd0be8869b3", "savedPayload": { "position": { - "x": 31796.725378706775, - "y": 24935.43788501323 + "x": 31198.58865383652, + "y": 25424.10619998208 }, "targetPosition": { - "x": 31535.618669924806, - "y": 24787.71081698219 + "x": 31133.65676965509, + "y": 25131.2173978461 }, "floatingObject": { "isPinned": false, @@ -2871,12 +2871,12 @@ "id": "d6767e03-d689-40e3-a9d3-a58da1606058", "savedPayload": { "position": { - "x": 31784.43461551855, - "y": 25333.687579508118 + "x": 30811.277004646992, + "y": 25637.25226533383 }, "targetPosition": { - "x": 31660.026642721677, - "y": 25060.699198245155 + "x": 30972.46688715104, + "y": 25384.234831589965 }, "floatingObject": { "isPinned": false, @@ -2903,12 +2903,12 @@ "id": "f4aa7c3d-67d1-476f-ad02-1564bbd25fea", "savedPayload": { "position": { - "x": 31660.026642721677, - "y": 25060.699198245155 + "x": 30972.46688715104, + "y": 25384.234831589965 }, "targetPosition": { - "x": 31535.618669924806, - "y": 24787.71081698219 + "x": 31133.65676965509, + "y": 25131.2173978461 }, "floatingObject": { "isPinned": false, @@ -2927,78 +2927,6 @@ "id": "e363d7d2-9c3b-49ce-aca4-f2f4c606f035" } } - }, - { - "type": "Weight Votes Switch", - "name": "CMC Top 500 Exchange SA Token Listing Pool Class", - "config": "{}", - "project": "Governance", - "weightVotesSwitch": [], - "poolWeightVotes": [ - { - "type": "Pool Weight Vote", - "name": "For the Exchange and/or Facilitators Pool", - "config": "{}", - "project": "Governance", - "id": "ce36bc1c-b5b3-42bd-9192-3026ecc8318f", - "savedPayload": { - "position": { - "x": 31415.99790927449, - "y": 25375.665639754687 - }, - "targetPosition": { - "x": 31475.80828959965, - "y": 25081.68822836844 - }, - "floatingObject": { - "isPinned": false, - "isFrozen": false, - "isCollapsed": false, - "angleToParent": 2, - "distanceToParent": 3, - "arrangementStyle": 0 - }, - "uiObject": { - "isRunning": false - }, - "referenceParent": { - "type": "Pool", - "name": "For the Exchange and/or Facilitators", - "id": "b3e92f4c-cf21-4e88-a331-cc07ead6a242" - } - } - } - ], - "assetWeightVotes": [], - "featureWeightVotes": [], - "positionWeightVotes": [], - "id": "75c8a3ca-d709-4bfd-9c52-10ba9d73f66d", - "savedPayload": { - "position": { - "x": 31475.80828959965, - "y": 25081.68822836844 - }, - "targetPosition": { - "x": 31535.618669924806, - "y": 24787.71081698219 - }, - "floatingObject": { - "isPinned": false, - "isFrozen": false, - "isCollapsed": false, - "angleToParent": 2, - "distanceToParent": 3, - "arrangementStyle": 0 - }, - "uiObject": { - "isRunning": false - }, - "referenceParent": { - "type": "Pool Class", - "name": "CMC Top 500 Exchange SA Token Listing", - "id": "88e61906-b259-4dd4-b505-1692dbf17863" - } - } } ], "poolWeightVotes": [], @@ -3008,12 +2936,12 @@ "id": "35b5ed46-1f55-4a56-9543-8f8e68211e18", "savedPayload": { "position": { - "x": 31535.618669924806, - "y": 24787.71081698219 + "x": 31133.65676965509, + "y": 25131.2173978461 }, "targetPosition": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "floatingObject": { "isPinned": false, @@ -3041,12 +2969,12 @@ "id": "e059f5c4-9132-4d76-9f3e-1060658fa704", "savedPayload": { "position": { - "x": 31332.941607640107, - "y": 24566.527615939154 + "x": 31068.724885473657, + "y": 24838.328595710118 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -3119,12 +3047,12 @@ "id": "d321184d-e28a-4c77-936c-bd3c105959de", "savedPayload": { "position": { - "x": 31594.789348377744, - "y": 24904.59856084849 + "x": 31328.53250660899, + "y": 24988.328595710118 }, "targetPosition": { - "x": 31298.482846199204, - "y": 24857.668221336422 + "x": 31031.099048196847, + "y": 24949.170738044104 }, "floatingObject": { "isPinned": false, @@ -3191,12 +3119,12 @@ "id": "5978216a-0541-483a-9109-524888600e6f", "savedPayload": { "position": { - "x": 31565.784803455714, - "y": 24993.865371258285 + "x": 31290.90666933218, + "y": 25099.170738044104 }, "targetPosition": { - "x": 31298.482846199204, - "y": 24857.668221336422 + "x": 31031.099048196847, + "y": 24949.170738044104 }, "floatingObject": { "isPinned": false, @@ -3263,12 +3191,12 @@ "id": "30580b13-7f2d-408d-b92d-7b20426aad73", "savedPayload": { "position": { - "x": 31510.614880555167, - "y": 25069.800255692386 + "x": 31213.727476899465, + "y": 25187.176740131476 }, "targetPosition": { - "x": 31298.482846199204, - "y": 24857.668221336422 + "x": 31031.099048196847, + "y": 24949.170738044104 }, "floatingObject": { "isPinned": false, @@ -3287,78 +3215,6 @@ "id": "e363d7d2-9c3b-49ce-aca4-f2f4c606f035" } } - }, - { - "type": "Weight Votes Switch", - "name": "CMC Top 500 Exchange SA Token Listing Pool Class", - "config": "{\n}", - "project": "Governance", - "weightVotesSwitch": [], - "poolWeightVotes": [ - { - "type": "Pool Weight Vote", - "name": "For the Exchange and/or Facilitators Pool", - "config": "{}", - "project": "Governance", - "id": "a8e6f80b-50e0-483c-8374-b1c48e2aa27f", - "savedPayload": { - "position": { - "x": 31570.87714604293, - "y": 25392.272135849442 - }, - "targetPosition": { - "x": 31434.679996121067, - "y": 25124.970178592932 - }, - "floatingObject": { - "isPinned": false, - "isFrozen": false, - "isCollapsed": false, - "angleToParent": 3, - "distanceToParent": 3, - "arrangementStyle": 0 - }, - "uiObject": { - "isRunning": false - }, - "referenceParent": { - "type": "Pool", - "name": "For the Exchange and/or Facilitators", - "id": "b3e92f4c-cf21-4e88-a331-cc07ead6a242" - } - } - } - ], - "assetWeightVotes": [], - "featureWeightVotes": [], - "positionWeightVotes": [], - "id": "47241c99-74f9-4bf7-b0d0-09d36b544d40", - "savedPayload": { - "position": { - "x": 31434.679996121067, - "y": 25124.970178592932 - }, - "targetPosition": { - "x": 31298.482846199204, - "y": 24857.668221336422 - }, - "floatingObject": { - "isPinned": false, - "isFrozen": false, - "isCollapsed": true, - "angleToParent": 3, - "distanceToParent": 3, - "arrangementStyle": 0 - }, - "uiObject": { - "isRunning": false - }, - "referenceParent": { - "type": "Pool Class", - "name": "CMC Top 500 Exchange SA Token Listing", - "id": "88e61906-b259-4dd4-b505-1692dbf17863" - } - } } ], "poolWeightVotes": [], @@ -3368,12 +3224,12 @@ "id": "58949e1e-3502-4317-ae8e-b4c56350902e", "savedPayload": { "position": { - "x": 31355.77774788672, - "y": 24681.33264564868 + "x": 31031.099048196847, + "y": 24949.170738044104 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -3938,12 +3794,12 @@ "id": "cb79b91f-d01c-4efa-8fea-e4b7374fdd8b", "savedPayload": { "position": { - "x": 31332.941607640107, - "y": 24796.137675358208 + "x": 30953.919855764132, + "y": 25037.176740131476 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -4142,12 +3998,12 @@ "id": "33c4a72b-4908-478e-b7c3-2304cb211f05", "savedPayload": { "position": { - "x": 31267.909782242685, - "y": 24893.464680004643 + "x": 30848.937140592272, + "y": 25088.948485930825 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -4280,12 +4136,12 @@ "id": "56c59557-4ab9-4f4b-9c48-e1f9822e4899", "savedPayload": { "position": { - "x": 31170.58277759625, - "y": 24958.496505402065 + "x": 30732.1335693955, + "y": 25096.604196456246 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -4484,12 +4340,12 @@ "id": "88c4df8c-48ff-4d7e-a5ed-015c3faf6e69", "savedPayload": { "position": { - "x": 31055.77774788672, - "y": 24981.33264564868 + "x": 30621.291427061515, + "y": 25058.978359179437 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, @@ -4943,12 +4799,12 @@ "id": "34ddd8f7-d8a3-495d-8c7f-2a3f121b3269", "savedPayload": { "position": { - "x": 30940.972718177196, - "y": 24958.496505402065 + "x": 30533.285424974143, + "y": 24981.79916674672 }, "targetPosition": { - "x": 31055.77774788672, - "y": 24681.33264564868 + "x": 30771.291427061515, + "y": 24799.170738044104 }, "floatingObject": { "isPinned": false, diff --git a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js index a315cfefd..e58b788bd 100644 --- a/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js +++ b/Projects/Governance/UI/Function-Libraries/ClaimsProgram.js @@ -94,7 +94,7 @@ function newGovernanceFunctionLibraryClaimsProgram() { if ( node.payload.votingProgram !== undefined && node.payload.votingProgram.votes !== undefined - ) { + ) { node.payload.claimsProgram = { count: 0, votes: 0 @@ -465,13 +465,14 @@ function newGovernanceFunctionLibraryClaimsProgram() { if (node.tokensAwarded !== undefined && node.tokensAwarded.payload !== undefined) { const tokensAwardedText = parseFloat(node.payload.claimsProgram.awarded.tokens.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(node.payload.claimsProgram.awarded.tokens | 0) + ' BTC' node.tokensAwarded.payload.uiObject.valueAngleOffset = 0 node.tokensAwarded.payload.uiObject.valueAtAngle = true node.tokensAwarded.payload.uiObject.statusAngleOffset = 0 node.tokensAwarded.payload.uiObject.statusAtAngle = true - node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens') + node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens' + tokensAwardedBTC) node.tokensAwarded.payload.uiObject.setStatus('From ' + node.payload.claimsProgram.count + ' Claims.') } } diff --git a/Projects/Governance/UI/Function-Libraries/GithubProgram.js b/Projects/Governance/UI/Function-Libraries/GithubProgram.js index 5aacc90b2..843c19bed 100644 --- a/Projects/Governance/UI/Function-Libraries/GithubProgram.js +++ b/Projects/Governance/UI/Function-Libraries/GithubProgram.js @@ -189,11 +189,12 @@ function newGovernanceFunctionLibraryGithubProgram() { if (node.tokensAwarded !== undefined && node.tokensAwarded.payload !== undefined) { const tokensAwardedText = parseFloat(node.payload.githubProgram.awarded.tokens.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(node.payload.githubProgram.awarded.tokens | 0) + ' BTC' node.tokensAwarded.payload.uiObject.valueAngleOffset = 0 node.tokensAwarded.payload.uiObject.valueAtAngle = false - node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens') + node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens' + tokensAwardedBTC) node.tokensAwarded.payload.uiObject.statusAngleOffset = 0 node.tokensAwarded.payload.uiObject.statusAtAngle = false diff --git a/Projects/Governance/UI/Function-Libraries/StakingProgram.js b/Projects/Governance/UI/Function-Libraries/StakingProgram.js index 0b065daf3..417c16f0d 100644 --- a/Projects/Governance/UI/Function-Libraries/StakingProgram.js +++ b/Projects/Governance/UI/Function-Libraries/StakingProgram.js @@ -162,11 +162,12 @@ function newGovernanceFunctionLibraryStakingProgram() { if (node.tokensAwarded !== undefined && node.tokensAwarded.payload !== undefined) { const tokensAwardedText = parseFloat(node.payload.stakingProgram.awarded.tokens.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(node.payload.stakingProgram.awarded.tokens | 0) + ' BTC' node.tokensAwarded.payload.uiObject.valueAngleOffset = 0 node.tokensAwarded.payload.uiObject.valueAtAngle = false - node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens') + node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens' + tokensAwardedBTC) } } } diff --git a/Projects/Governance/UI/Function-Libraries/TokenMining.js b/Projects/Governance/UI/Function-Libraries/TokenMining.js index 3c767f30e..1fbd9ce3d 100644 --- a/Projects/Governance/UI/Function-Libraries/TokenMining.js +++ b/Projects/Governance/UI/Function-Libraries/TokenMining.js @@ -149,12 +149,13 @@ function newGovernanceFunctionLibraryTokenMining() { const awarded = parseFloat(userProfile.tokensMined.payload.tokensMined.awarded.toFixed(0)).toLocaleString('en') const bonus = parseFloat(userProfile.tokensMined.payload.tokensMined.bonus.toFixed(0)).toLocaleString('en') const total = parseFloat(userProfile.tokensMined.payload.tokensMined.total.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(userProfile.tokensMined.payload.tokensMined.total | 0) + ' BTC' userProfile.tokensMined.payload.uiObject.valueAngleOffset = 0 userProfile.tokensMined.payload.uiObject.valueAtAngle = true userProfile.tokensMined.payload.uiObject.setStatus(awarded + ' Awarded + ' + bonus + ' Bonus') - userProfile.tokensMined.payload.uiObject.setValue(total + ' SA Tokens') + userProfile.tokensMined.payload.uiObject.setValue(total + ' SA Tokens' + tokensAwardedBTC) } } } \ No newline at end of file diff --git a/Projects/Governance/UI/Function-Libraries/Tokens.js b/Projects/Governance/UI/Function-Libraries/Tokens.js index 0fc8d0d8f..4d30f56b0 100644 --- a/Projects/Governance/UI/Function-Libraries/Tokens.js +++ b/Projects/Governance/UI/Function-Libraries/Tokens.js @@ -168,16 +168,15 @@ function newGovernanceFunctionLibraryTokens() { tokens = tokens | 0 let status if (weight !== undefined && weight !== 0) { - status = tokens.toLocaleString('en') - + ' ' + 'SA Tokens Reward' + ' - ' + 'Weight: ' + (weight * 100).toFixed(2) + " %" - + status = 'Reward: ' + tokens.toLocaleString('en') + + ' ' + 'SA' + ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(tokens | 0) + ' BTC ' + ' + Weight: ' + (weight * 100).toFixed(2) + " %" node.payload.uiObject.statusAngleOffset = 0 node.payload.uiObject.statusAtAngle = true node.payload.uiObject.setStatus(status) } else { - status = tokens.toLocaleString('en') - + ' ' + 'SA Tokens Reward' + status = 'Reward: ' + tokens.toLocaleString('en') + + ' ' + 'SA' + ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(tokens | 0) + ' BTC ' node.payload.uiObject.statusAngleOffset = 0 node.payload.uiObject.statusAtAngle = false diff --git a/Projects/Governance/UI/Utilities/BonusProgram.js b/Projects/Governance/UI/Utilities/BonusProgram.js index 5087f7b31..7f8526b61 100644 --- a/Projects/Governance/UI/Utilities/BonusProgram.js +++ b/Projects/Governance/UI/Utilities/BonusProgram.js @@ -146,11 +146,12 @@ function newGovernanceUtilitiesBonusProgram() { if (node.tokensBonus !== undefined && node.tokensBonus.payload !== undefined) { const tokensBonusText = parseFloat(node.payload[programPropertyName].bonus.tokens.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(node.payload[programPropertyName].bonus.tokens | 0) + ' BTC' node.tokensBonus.payload.uiObject.valueAngleOffset = 0 node.tokensBonus.payload.uiObject.valueAtAngle = true - node.tokensBonus.payload.uiObject.setValue(tokensBonusText + ' SA Tokens') + node.tokensBonus.payload.uiObject.setValue(tokensBonusText + ' SA Tokens' + tokensAwardedBTC) } } } diff --git a/Projects/Governance/UI/Utilities/Conversions.js b/Projects/Governance/UI/Utilities/Conversions.js index 0637e4ce1..526df9122 100644 --- a/Projects/Governance/UI/Utilities/Conversions.js +++ b/Projects/Governance/UI/Utilities/Conversions.js @@ -9,6 +9,6 @@ function newGovernanceUtilitiesConversions () { const SA_BTC_BASELINE_EXCHANGE_RATE = 1.5 / 1000000 const BTC = SATokens * SA_BTC_BASELINE_EXCHANGE_RATE - return SATokens + ' SA ≃ ' + BTC.toFixed(8) + ' BTC' + return BTC.toFixed(3) } } \ No newline at end of file diff --git a/Projects/Governance/UI/Utilities/DecendentProgram.js b/Projects/Governance/UI/Utilities/DecendentProgram.js index 4378d2db6..18b3fdd30 100644 --- a/Projects/Governance/UI/Utilities/DecendentProgram.js +++ b/Projects/Governance/UI/Utilities/DecendentProgram.js @@ -414,13 +414,14 @@ function newGovernanceUtilitiesDecendentProgram() { if (node.tokensAwarded !== undefined && node.tokensAwarded.payload !== undefined) { const tokensAwardedText = parseFloat(node.payload[programPropertyName].awarded.tokens.toFixed(0)).toLocaleString('en') + const tokensAwardedBTC = ' ≃ ' + UI.projects.governance.utilities.conversions.estimateSATokensInBTC(node.payload[programPropertyName].awarded.tokens | 0) + ' BTC' node.tokensAwarded.payload.uiObject.statusAngleOffset = 0 node.tokensAwarded.payload.uiObject.statusAtAngle = true node.tokensAwarded.payload.uiObject.valueAngleOffset = 0 node.tokensAwarded.payload.uiObject.valueAtAngle = true - node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens') + node.tokensAwarded.payload.uiObject.setValue(tokensAwardedText + ' SA Tokens' + tokensAwardedBTC) node.tokensAwarded.payload.uiObject.setStatus('From ' + node.payload[programPropertyName].count + ' Descendants.') } }