Merge pull request #2419 from Luis-Fernando-Molina/develop
Contribution: Bug Fixes on Liquidity Program
This commit is contained in:
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')
|
||||
|
||||
Reference in new issue
Block a user