# Voting strategies

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.&#x20;

<figure><img src="/files/nsOzdl3HsXaQLR9VLeIq" alt=""><figcaption></figcaption></figure>

You can find all available strategies either on the "Strategies" tab of the homepage or by using this [direct link](https://protongov.com/?tab=strategies).

<figure><img src="/files/9F5UhDsNNz8vx5xgOU1E" alt=""><figcaption></figcaption></figure>

When you select and click on a strategy you will see the following:

```
xpr-unstaked-and-staked-balances

Author:  jay
Version:  0.0.1
```

&#x20;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.&#x20;

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.

<figure><img src="/files/f9FM8sWqoBXZ05ERg5tM" alt=""><figcaption></figcaption></figure>

All proposals display the associated strategies in the "Details" section.

<figure><img src="/files/mgXrnaMrPri0FZN7O9o2" alt=""><figcaption></figcaption></figure>

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gov.docs.xprnetwork.org/governance/voting-strategies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
