Deep Scan Bug Fixes
This commit is contained in:
1 parent
c6f34e97e1
commit
38706a4615
5 files changed
+9
-9
No files matched your search
@@ -326,7 +326,7 @@ function newGovernanceFunctionLibraryClaimsProgram() {
|
||||
if (childNode.type === "Tokens Awarded") { continue }
|
||||
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
@@ -342,7 +342,7 @@ function newGovernanceFunctionLibraryClaimsProgram() {
|
||||
if (childNode.type === "Tokens Awarded") { continue }
|
||||
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
@@ -184,7 +184,7 @@ function newGovernanceFunctionLibraryDelegationProgram() {
|
||||
if (childNode === undefined) { continue }
|
||||
if (childNode.type === 'Tokens Bonus') { continue }
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
@@ -199,7 +199,7 @@ function newGovernanceFunctionLibraryDelegationProgram() {
|
||||
if (childNode === undefined) { continue }
|
||||
if (childNode.type === 'Tokens Bonus') { continue }
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
@@ -191,7 +191,7 @@ function newGovernanceFunctionLibraryTokenPower() {
|
||||
|
||||
let percentage = getPercentage(childNode)
|
||||
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
@@ -208,7 +208,7 @@ function newGovernanceFunctionLibraryTokenPower() {
|
||||
if (OPAQUE_NODES_TYPES.includes(childNode.type)) { continue }
|
||||
|
||||
let percentage = getPercentage(childNode)
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
@@ -331,7 +331,7 @@ function newGovernanceFunctionLibraryVotingProgram() {
|
||||
if (childNode === undefined) { continue }
|
||||
if (childNode.type === 'Tokens Bonus') { continue }
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
@@ -346,7 +346,7 @@ function newGovernanceFunctionLibraryVotingProgram() {
|
||||
if (childNode === undefined) { continue }
|
||||
if (childNode.type === 'Tokens Bonus') { continue }
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
@@ -283,7 +283,7 @@ function newGovernanceUtilitiesDecendentProgram() {
|
||||
for (let i = 0; i < node[usersArrayPropertyName].length; i++) {
|
||||
let childNode = node[usersArrayPropertyName][i]
|
||||
let percentage = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(childNode.payload, 'percentage')
|
||||
if (percentage !== undefined && isNaN(percentage) && percentage > 0 !== true) {
|
||||
if (percentage !== undefined && isNaN(percentage) !== true && percentage >= 0) {
|
||||
totalPercentage = totalPercentage + percentage
|
||||
} else {
|
||||
totalNodesWithoutPercentage++
|
||||
|
||||
Reference in new issue
Block a user