Liquidity Program added

This commit is contained in:
Luis Fernando Molina committed 2021-10-19 16:23:57 +02:00
1 parent 32496a9059
commit 7a1b1f7ff0
8 files changed
+873 -288

No files matched your search

@@ -6,8 +6,8 @@ function newGovernanceFunctionLibraryDistributionProcess() {
}
const DISTRIBUTION_PROCESS_RECALCULATION_DELAY = 5000
let loop
let loop
return thisObject
function initialize() {
@@ -18,7 +18,7 @@ function newGovernanceFunctionLibraryDistributionProcess() {
function finalize() {
loop = false
}
function calculate() {
let pools = UI.projects.foundations.spaces.designSpace.workspace.getHierarchyHeadsByNodeType('Pools')
@@ -110,6 +110,13 @@ function newGovernanceFunctionLibraryDistributionProcess() {
userProfiles
)
/*
Run the Liquidity Program
*/
UI.projects.governance.functionLibraries.liquidityProgram.calculate(
pools,
userProfiles
)
/*
Run the Claims Program
*/
UI.projects.governance.functionLibraries.claimsProgram.calculate(