live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/vote-core


@orangecheck/vote-core / voterWeight

Function: voterWeight()

function voterWeight(input: VoterWeightInput): number;

Defined in: weight.ts:51

Voter weight per SPEC §5. Returns 0 if threshold not met or mode unsupported. Unknown modes throw — callers should check support before tallying.

Parameters

ParameterType
inputVoterWeightInput

Returns

number