> For the complete documentation index, see [llms.txt](https://docs.townhallgov.com/townhall/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.townhallgov.com/townhall/product-guides/strategies/voting-strategies.md).

# Voting Strategies

### What is a voting strategy? <a href="#what-is-a-voting-strategy" id="what-is-a-voting-strategy"></a>

Voting strategy is a set of conditions used to calculate user's voting power. Strategies enable Townhall to calculate the final result of voting on a given proposal.

> In technical terms a strategy is a JavaScript function that returns a score for a set of addresses.

Strategy/-ies are defined in the house settings in Voting Strategies section. Each house can select from one up to eight voting strategies. The default strategy is [`erc20-balance-of`](/townhall/product-guides/strategies/voting-strategies/token-weighted-strategy/balance-of-erc20.md) - it calculates the balance of a predefined ERC20 token for each user. Voting strategies can be used to create a score from on-chain data, the data however does not necessarily need to be monetary. As an example a strategy can calculate how many POAPs or specific NFTs a user owns.&#x20;

&#x20;If you can't find a strategy that fulfills your needs you can create a new one.&#x20;

### How to set up a strategy? <a href="#how-to-set-up-a-strategy" id="how-to-set-up-a-strategy"></a>

Majority of houses on Townhall use a single strategy however if you need a more complex calculation, you can combine up to 8 strategies. They will be applied to all proposals created for your house (created *after* the update of the settings) and the voting power will be calculated cumulatively.

{% hint style="info" %}
**Multiple voting strategies :**  If you combine several voting strategies the voting power will be calculated in the following way: *total voting power = voting power from strategy A + voting power from strategy B + ...*
{% endhint %}

In order to set up a voting strategy ,head to your house settings and scroll down to **Strategies** section. You should see the below pop-up after clicking **Add strategy** and selecting a strategy from the list.

&#x20;

<figure><img src="/files/O9xXaVXgLsWRFC2QjvIq" alt="" width="249"><figcaption></figcaption></figure>

You will see that there is information that you need to provide in order to make the strategy work, for example the **network** where the token is deployed, its **symbol** and **address** of the token's contract.

Each strategy will require a different setup and you can read the full description and see the required parameters in the strategy's page, for example [erc20-balance-of](/townhall/product-guides/strategies/voting-strategies/token-weighted-strategy/balance-of-erc20.md). You can find each strategy's details here.
