<p>I think what you're describing is basically a smart contract.</p>
<p>How you design a smart contract is not limited by anything other than your technical ability, then by your own imagination. You could design a smart contract where any transaction that occurs incurs a small transaction fee and the fee is stored in a designated address or &quot;treasury&quot; address where the UTXO can only be spent by having a vote by holders of the token.</p>
<p>The voting functionality would need an off-chain validator function confirming the person voting indeed has some of the correct native asset, and how much they have. Next you would create functions to submit proposals, which again check that the person submitting a proposal holds that specific native token.</p>
<p>So essentially the smart contract would handle the logic of submitting, voting on, and determining which proposal wins and becomes the future of the dApp/protocol/whatever.</p>
<p>This is what makes blockchain so exciting, it's simply up to your imagination. Look into the <a href="https://etherscan.io/token/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984#readContract" rel="nofollow noreferrer">Uniswap</a> smart contract for a more in-depth look into creating a smart contract with the functionality you defined.</p>

CC BY-SA 4.0
2021-07-05T23:06:27.523Z
This was a perfect answer, thank you so much :) My only follow-up question - is it not possible to have the voting occur on-chain?
Blake Brown
CC BY-SA 4.0
2021-07-06T02:56:47.177Z
Well, uhh.. that's essentially what's happening here. You can only execute a smart contract through a UTXO. Nothing happens on Cardano on it's own, it must be triggered by a UTXO which of course means everytime you interact with a smart contract and executing a function that's part of that contract you are "on-chain".
intrinsic-values
CC BY-SA 4.0
2021-07-04T20:49:57.177Z
2021-07-04T20:49:57.177Z
intrinsic-values
<p>The on chain voting features coming with the Voltaire rollout will allow users to use those voting systems for other things because they are part of the base protocol. So incorporating voting on chain with a plutus contract will be possible.</p>
<p>just not right now.</p>

CC BY-SA 4.0
2021-07-02T22:11:58.080Z
2021-07-02T22:11:58.080Z
jnprogrammer
<p>I have an idea for a native asset where txn fees are sent to a treasury and token holders can vote on how to spend those funds. Exactly like how Cardano currently works, but for a different purpose (ex. A Miami coin where token holders can vote on proposed projects to improve the city).</p>
<p>Is it possible to build something like this?</p>

<token><voting>
Is on-chain voting limited to just the Cardano treasury?
# Is on-chain voting limited to just the Cardano treasury?

(Asked by: username_0 on 2021-07-02)

I have an idea for a native asset where txn fees are sent to a treasury and token holders can vote on how to spend those funds. Exactly like how Cardano currently works, but for a different purpose (ex. A Miami coin where token holders can vote on proposed projects to improve the city).

Is it possible to build something like this?

**Tags:** token, voting

---

## 2 answers

### Answer by username_1 on 2021-07-04. Score: 0 | Accepted answer

I think what you're describing is basically a smart contract.

How you design a smart contract is not limited by anything other than your technical ability, then by your own imagination. You could design a smart contract where any transaction that occurs incurs a small transaction fee and the fee is stored in a designated address or "treasury" address where the UTXO can only be spent by having a vote by holders of the token.

The voting functionality would need an off-chain validator function confirming the person voting indeed has some of the correct native asset, and how much they have. Next you would create functions to submit proposals, which again check that the person submitting a proposal holds that specific native token.

So essentially the smart contract would handle the logic of submitting, voting on, and determining which proposal wins and becomes the future of the dApp/protocol/whatever.

This is what makes blockchain so exciting, it's simply up to your imagination. Look into the [Uniswap](https://etherscan.io/token/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984#readContract) smart contract for a more in-depth look into creating a smart contract with the functionality you defined.

> **Comments:**
> **username_0**: This was a perfect answer, thank you so much :) My only follow-up question - is it not possible to have the voting occur on-chain?  
> **username_1**: Well, uhh.. that's essentially what's happening here. You can only execute a smart contract through a UTXO. Nothing happens on Cardano on it's own, it must be triggered by a UTXO which of course means everytime you interact with a smart contract and executing a function that's part of that contract you are "on-chain".  

---

### Answer by username_2 on 2021-07-02. Score: 5

The on chain voting features coming with the Voltaire rollout will allow users to use those voting systems for other things because they are part of the base protocol. So incorporating voting on chain with a plutus contract will be possible.

just not right now.


---

