The XPR Network Governance Dashboard allows community administrators to upload JavaScript functions as voting strategies that can calculate scores for all participants, return the quorum and account balances. These strategies are then available for use when creating proposals on the platform.
Communities may have several voting strategies defined, but only one can be selected at a time when creating a proposal. The selected strategy will be used to determine the eligibility of users to cast their votes.
Strategies are frequently employed to determine the final outcome of a proposal.
You can find all available strategies either on the "Strategies" tab of the homepage or by using this direct link.
When you select and click on a strategy you will see the following:
xpr-unstaked-and-staked-balances
Author:
jay
Version:
0.0.1
The first portion specifies the JavaScript function that was uploaded by an community administrator, along with the author and version number of the script.
Unstaked XPR and Short Staked Balances
Unstaked XPR + Short Staked XPR
The second portion defines the criteria for eligible voters.
For the XPR Network community, users who hold both staked and unstaked balances of XPR are eligible to cast their votes. Users without XPR holdings will not be able to vote on proposals.
Voting strategies are unique to each community and are intended to determine eligibility of users to cast their votes.
All proposals display the associated strategies in the "Details" section.
When creating a proposal, the strategy is always displayed.
If there are multiple strategies available, they will all be visible and selectable when creating a proposal.