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

Contribution: Bug Fixes on Liquidity Program
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-10-31 11:23:05 -04:00
commit 5957989d42
2 files changed
+6 -1

No files matched your search

@@ -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')