Tokens Mined Fixed
This commit is contained in:
1 parent
e8809618d5
commit
7dab358863
3 files changed
+17
-5
No files matched your search
@@ -113,6 +113,18 @@ function newGovernanceFunctionLibraryTokenMining() {
|
||||
|
||||
calculateProgram(userProfile, program, "airdropProgram")
|
||||
}
|
||||
for (let i = 0; i < userProfiles.length; i++) {
|
||||
let userProfile = userProfiles[i]
|
||||
for (let j = 0; j < UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_ASSETS.length; j++) {
|
||||
let asset = UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_ASSETS[j]
|
||||
if (userProfile.tokenPowerSwitch === undefined) { continue }
|
||||
let program = UI.projects.governance.utilities.validations.onlyOneProgramBasedOnConfigProperty(userProfile, "Liquidity Program", 'asset', asset)
|
||||
if (program === undefined) { continue }
|
||||
if (program.payload === undefined) { continue }
|
||||
|
||||
calculateProgram(userProfile, program, "liquidityProgram")
|
||||
}
|
||||
}
|
||||
|
||||
for (let i = 0; i < userProfiles.length; i++) {
|
||||
let userProfile = userProfiles[i]
|
||||
@@ -149,7 +161,7 @@ function newGovernanceFunctionLibraryTokenMining() {
|
||||
if (userProfile.payload === undefined) { return }
|
||||
if (userProfile.tokensMined === undefined) { return }
|
||||
if (userProfile.tokensMined.payload === undefined) { return }
|
||||
|
||||
|
||||
if (programNode.payload === undefined) { return }
|
||||
if (programNode.payload[programPropertyName] === undefined) { return }
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ function newGovernanceGlobalsSaToken() {
|
||||
SA_TOKEN_BSC_DECIMAL_FACTOR: 1000000000000000000,
|
||||
SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BTCB_CONTRACT_ADDRESS: '0x7164b91db59c50156b63d0e31da08cd47b031711',
|
||||
SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BNB_CONTRACT_ADDRESS: '0xd4a05523839d0d175289054022ee4e01e3dae854',
|
||||
SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BUSD_CONTRACT_ADDRESS: '0xf9e8ce74058d872f7688665885826c3d5e1d0a27'
|
||||
SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BUSD_CONTRACT_ADDRESS: '0xf9e8ce74058d872f7688665885826c3d5e1d0a27',
|
||||
SA_TOKEN_BSC_PANCAKE_LIQUIDITY_ASSETS: ['BTCB', 'BNB', 'BUSD']
|
||||
}
|
||||
return thisObject
|
||||
}
|
||||
@@ -22,7 +22,6 @@ function newGovernanceReportsLiquidity() {
|
||||
let table = 'Liquidity'
|
||||
let programName = 'Liquidity Program'
|
||||
let programPropertyName = 'liquidityProgram'
|
||||
let assets = ['BTCB', 'BNB', 'BUSD']
|
||||
/*
|
||||
Setup Filters
|
||||
*/
|
||||
@@ -89,8 +88,8 @@ function newGovernanceReportsLiquidity() {
|
||||
|
||||
for (let j = 0; j < userProfiles.length; j++) {
|
||||
let userProfile = userProfiles[j]
|
||||
for (let j = 0; j < assets.length; j++) {
|
||||
let asset = assets[j]
|
||||
for (let j = 0; j < UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_ASSETS.length; j++) {
|
||||
let asset = UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_ASSETS[j]
|
||||
if (userProfile.tokenPowerSwitch === undefined) { continue }
|
||||
let program = UI.projects.governance.utilities.validations.onlyOneProgramBasedOnConfigProperty(userProfile, programName, 'asset', asset)
|
||||
if (program === undefined) { continue }
|
||||
|
||||
Reference in new issue
Block a user