Merge pull request #1176 from Luis-Fernando-Molina/develop
Contribution: Governance Refactoring User Referrals into Referral Program
This commit is contained in:
6 files changed
+9
-8
No files matched your search
@@ -423,7 +423,7 @@
|
||||
},
|
||||
{
|
||||
"type": "Pool",
|
||||
"name": "User Referrals",
|
||||
"name": "Referral Program",
|
||||
"config": "{\n \"codeName\": \"Referral-Program\"\n}",
|
||||
"project": "Governance",
|
||||
"poolClasses": [],
|
||||
|
||||
@@ -432,7 +432,7 @@
|
||||
},
|
||||
{
|
||||
"type": "Pool Weight Vote",
|
||||
"name": "User Referrals Pool",
|
||||
"name": "Referral Program Pool",
|
||||
"config": "{}",
|
||||
"project": "Governance",
|
||||
"id": "33a03a57-6811-4cad-94af-14a0597e9fb3",
|
||||
@@ -456,7 +456,7 @@
|
||||
"uiObject": {},
|
||||
"referenceParent": {
|
||||
"type": "Pool",
|
||||
"name": "User Referrals",
|
||||
"name": "Referral Program",
|
||||
"id": "639a6504-a0d0-4d7e-ad99-80ba5115ac72"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ function newGovernanceFunctionLibraryDistributionProcess() {
|
||||
pools
|
||||
)
|
||||
|
||||
UI.projects.governance.functionLibraries.userrReferrals.calculate(
|
||||
UI.projects.governance.functionLibraries.referralProgram.calculate(
|
||||
pools,
|
||||
userProfiles
|
||||
)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
function newGovernanceFunctionLibraryUserReferrals() {
|
||||
function newGovernanceFunctionLibraryReferralProgram() {
|
||||
let thisObject = {
|
||||
calculate: calculate
|
||||
}
|
||||
@@ -999,9 +999,9 @@
|
||||
"functionName": "newGovernanceFunctionLibraryPluginsFunctions"
|
||||
},
|
||||
{
|
||||
"name": "User Referrals",
|
||||
"propertyName": "userrReferrals",
|
||||
"functionName": "newGovernanceFunctionLibraryUserReferrals"
|
||||
"name": "Referral Program",
|
||||
"propertyName": "referralProgram",
|
||||
"functionName": "newGovernanceFunctionLibraryReferralProgram"
|
||||
},
|
||||
{
|
||||
"name": "Profile Constructor",
|
||||
|
||||
@@ -131,6 +131,7 @@ function splitTextIntoPhrases(text, wordsPerLine) {
|
||||
return phrases
|
||||
} catch (err) {
|
||||
console.log(err.stack)
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user