Skip to content

ineligibleNeurons

ineligibleNeurons(params): NeuronInfo[]

Defined in: packages/nns/src/utils/neurons.utils.ts:37

Filter the neurons that are ineligible to vote to a proposal.

This feature needs the ballots of the proposal to contains accurate data. If the proposal has settled, as the ballots of the proposal are emptied for archive purpose, the function might return a list of ineligible neurons that are actually neurons that have not voted but would have been eligible.

Long story short, check the status of the proposal before using this function.

NeuronInfo[]

The neurons to filter.

ProposalInfo

The proposal to match against the selected neurons.

NeuronInfo[]