Merge branch 'develop' of https://github.com/Superalgos/Superalgos into develop

This commit is contained in:
SIFISO KHUMALO committed 2021-10-31 17:27:21 +02:00
commit ea023c9762
4 files changed
+1296 -416

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -127,6 +127,11 @@ function newGovernanceFunctionLibraryDistributionProcess() {
userProfiles,
'BUSD'
)
UI.projects.governance.functionLibraries.liquidityProgram.calculate(
pools,
userProfiles,
'ETH'
)
/*
Run the Claims Program
*/
@@ -152,7 +152,7 @@ function newGovernanceFunctionLibraryLiquidityProgram() {
}
function drawProgram(node) {
if (node.payload !== undefined) {
if (node.payload !== undefined && node.payload.liquidityProgram.ownPower !== undefined) {
const ownPowerText = parseFloat(node.payload.liquidityProgram.ownPower.toFixed(2)).toLocaleString('en')
const percentageText = parseFloat(node.payload.liquidityProgram.awarded.percentage.toFixed(2)).toLocaleString('en')