Questions tagged [voting]
The voting tag has no usage guidance.
51 questions
0
votes
0
answers
37
views
Dividend paying with Erc20Votes
I want to implement dividends in my platform working with an erc20votes token from Openzeppelin. The platform works with holders delegating their balance as votes to a representative. The elected ...
6
votes
1
answer
101
views
Why is it called “quadratic” voting?
What’s “quadratic” about it? Do the votes somehow exhibit “multiplicative” behavior, relative to one another (since each person must subdivide their votes, so the final tally is more like ratios or ...
2
votes
1
answer
31
views
Does each validator have equal voting right in a committee?
I am very new to Ethereum.
I am wondering once validators are selected for a committee, does every validator have equal voting right? Or their voting rights are weighted by their deposit balances? ...
1
vote
1
answer
770
views
"Migrations" hit an invalid opcode while deploying [duplicate]
I do not understand why this is happening, I have tried many solutions, but still without effect.
Updating the truffle version did not help.
truffle migrate --reset
1_initial_migration.js
=============...
0
votes
1
answer
88
views
What are the pros and cons of using OpenZeppelin ERC20Votes?
I want to use this extension for an ERC20 token.
What are the pros and cons (if any) of adding this to it?
1
vote
2
answers
61
views
Voting smart contract help highest voted function?
first, I apologize for this very simple question. I'm starting my studies on smart contract
can someone explain highest voted function in this contract?
// SPDX-License-Identifier: MIT
pragma solidity ...
1
vote
0
answers
129
views
ERC721 as DAO voting
I'm attempting to create ERC-721 with Dao voting power. Firstly, I want to make an ERC721 nft of different types like hero nft, legend nft, rare nft, uncommon nft, and common nft. Is it possible to ...
2
votes
1
answer
107
views
What happens on curves VotingEscrow contract after 5 years?
I am studying the Voting Escrow contract and im looking to incorporate it in a project im building.
In the _checkpoint function , there is this for loop:
t_i: uint256 = (last_checkpoint / WEEK) * ...
0
votes
2
answers
223
views
Getting "Unknown Proposal ID" when casting vote in DAO
I am having trouble voting in my DAO. I have created a ERC721 Token and a DAO, both using the OpenZeppelin Wizard
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/...
2
votes
0
answers
28
views
payable extension required?
I am writing a simple contract to replicate a voting session led by a president. The contract compiles correctly, however, I can't deploy it because of the following error: "Note: The called ...
4
votes
2
answers
646
views
Curve Voting Escrow Explanations
Curve Voting Escrow has gradually become the de facto approach for DeFi projects of gaining, decaying and consuming voting power through the functions on their smart contract. The original contract ...
1
vote
0
answers
82
views
OpenZeppelin Governor quorumNumerator question
I may have some misunderstanding of OZ's Governor contract's QuorumNumerator and how to determine if a member of the DAO's has enough tokens/voting power to reach quorum. Please help! Thanks.
For ...
2
votes
1
answer
48
views
DAO like functionality on Gnosis?
I am a Gnosis newbie. Want to set up a safe for an investor group. It seems like the safe has awesome functionality for that. As the group potentially expands beyond my small circle, may offer ...
0
votes
2
answers
1k
views
"Election" hit an invalid opcode while deploying. truffle migrate
I'm just getting started with Solidity and ran into a problem that I can't solve. The error below displays when you try to migrate
truffle migrate --reset
2_deploy_contracts.js
=====================
...
0
votes
1
answer
61
views
Contract too big
My contract size is too big.
It's an erc20 token with RFI and a voting extension from Openzeppelin.
ERC20 + RFI is fine. (21KB)
ERC20 + Voting extension is fine too. (16KB)
But ERC20 + RFI + Voting is ...
0
votes
0
answers
187
views
Out of gas & Exceeds block gas limit, but contract size <24KB
I've 2 contracts I'm trying to deploy on mainnet-fork, but I keep getting this error:
VirtualMachineError: out of gas
When I try to increase the gas limit, I get this:
ValueError: Exceeds block gas ...
0
votes
1
answer
201
views
Smart Contract > 24kb
I've a smart contract that's already optimised but the bytecode is still 60kb. (~1.5k lines, comments excluded (I know lines does not matter but it's to give you a better idea))
It's an ERC20Token ...
1
vote
1
answer
60
views
Voting without paying fees
I'm Alex and currently exploring the governance smart contracts.
I would like to create an ERC20 token where holders are able to vote/sign multiple propositions made by the owners account.
Is there a ...
1
vote
1
answer
383
views
How to allow each voter to vote only once? [Very Simple Voting Contract]
first, I apologize for this very very very simple question. I'm starting my studies on smart contracts, and after many attempts, I have not been able to solve this problem.
Objectively, this is a ...
1
vote
1
answer
484
views
Can a flash loan used to flash attack a smart contract?
I am new to flash loans. Let us say I have smart contract where people vote. Your voting power on this contract is based on how many token x you have. The votes are yes and no and the vote with more ...
1
vote
1
answer
66
views
MakerDAO MKR Withdrawal. Continuous Approval Voting
When I want to vote on some proposals, I need to lock some MKR tokens. Does it mean that I withdraw my MKR tokens, then the result of voting may change even after it has finished?
Does Continuous ...
1
vote
2
answers
2k
views
Accessing database in solidity
I am developing a voting application using blockchain (ganache). So basically i am registering the candidates by a web form and storing the data in phpmyadmin database. Now i want to access this data ...
1
vote
0
answers
19
views
Block Chain Polling/Voting using Honest/Costly Signalling [Why is this wrong, can this system work?]
This Poll measures (Support for X) not (People who support X)
You signal support for a candidate by forfeiting any amount of value to a candidate specific address in return you get...
A public and ...
0
votes
1
answer
39
views
How come Blockchain Voting is decentralised and secure if it's controlled by ethereum network?
I'm building a voting Dapp using ethereum blockchain but I have a doubt. The best thing about blockchain is that it's decentralized, transparent and secure i.e. no middleman or centralized server ...
2
votes
0
answers
44
views
Offchain voting
Are there any voting based approaches where voting would happen off chain, via signed messages, but then the result could be indepedently verified or even stored on chain?
Voting rights are based on ...
1
vote
0
answers
21
views
Is it possible to do vote and participate in crowd-sale using Forwarder address?
Currently, I am using Metamask (Ropsten TestNet).
And I want to implement one voting cum crowd-sale process, the scenario is given below:
Want to make the voting process in this if Voter is voted to ...
0
votes
2
answers
161
views
Token based voting approach [closed]
I want to implement a voting approach and already watched some tutorials. My question is: Is it possible to send out voting tokens to voters that also gather data about the voters? Like for example ...
2
votes
0
answers
48
views
How does Casper record votes efficiently?
I keep reading about Casper doling out rewards and punishments for voters based on how they're voting. If I am understanding this correctly, it seems that Casper punishes nodes that submit votes to ...
3
votes
2
answers
641
views
How to build a blind voting contract in Solidity
Can we build a smart contract where it is not possible to see the actual vote until the voting period ends? One idea is to use hashing. Voters can send a hashed version of a vote. The problem with ...
0
votes
1
answer
439
views
Delegate function really needed while loop(Voting example)?
I'm learning Solidity, and referring given example of Voting in a doc.
But I'm not able to understand one thing about delegate function.
Here is the Delegate method:
/// Delegate your vote to the ...
0
votes
1
answer
51
views
Validating voting keys
Say eligible voters are sent voting keys they need to use to vote. A contract would have a list of the hashes of these voting keys for verification. A voter would call a function passing in their ...
0
votes
1
answer
72
views
where ethereum application store data
I run one simple voting application in ethereum....
i want to know where they store the data(no of votes)..
what is the mechanism for storing data..
or where data persist in ethereum
i am ...
4
votes
2
answers
2k
views
Using Multiple Accounts from a single physical machine
Hey all,
I was wondering something. I am planning to create a simple Voting Dapp for a closed election, where a number of accounts will be set up ahead of time and pre-authorised to vote. The Voting ...
0
votes
2
answers
95
views
How many nodes can confirm the correctness of the hash value by miner?
After mining the hash value for the new block, How many nodes can confirm the correctness of the hash value by miner?
In one of blockchain paper, all other nodes must mutually confirm the correctness ...
1
vote
0
answers
72
views
Has an exchange ever voted with a users tokens?
If a token allows tokenholders to vote on some issue/proposal/action or whatever, it is conceivable that a token-exchange that holds its customers' tokens could covertly, or perhaps openly, vote on ...
3
votes
2
answers
162
views
Keep data secret until a specific date
Context: Ethereum based voting system
Let's say a user a user can cast a vote. The user has to choose 1 item out of 10. I believe it is possible to create a smart contract supporting such an election....
1
vote
1
answer
863
views
Can anyone explain solidity voting application?
So I saw this example on solidity documentation site, I understand how code is working but my issue is that I am unable to understand the problem statement.
The idea is to create one contract per ...
2
votes
2
answers
491
views
Electronic Voting
Is this possible to create online election/voting system on ethereum? Is anyone working on it? How you would insure that people wouldn't create second account and vote second time? Is this possible to ...
1
vote
2
answers
2k
views
An online voting system using blockchain technology [closed]
i gotta develop an online voting system for the student elections using blockchain technology for my university project. following are the basic requirements for my system:
1. students should be able ...
6
votes
2
answers
339
views
Can Ethereum based tokens be used to represent a voting share in a private company?
If tokens are issued to represent votes for a private company are they considered securities by the SEC?
I want to create a legal entity, like a trust, that will appoint board members who oversee a ...
13
votes
2
answers
903
views
Secret ballot voting
Is it possible to organize a secret ballot voting in a smart contract
One knows the number of votes casted and who have voted
You know the total results of the voting
However, one doesn't know who ...
3
votes
2
answers
91
views
Why should we use different versions of Ethereum Wallet?
In a recent Griff Green article you can read to use either version 0.6.2 or 0.7.4 of Ethereum Wallet to vote and to create a proposal.
It's very confusing...
From the blog post:
[...]create a ...
7
votes
1
answer
752
views
How can I list The DAO proposals and vote from the command line?
Are there any command line tools to vote on The DAO proposals?
I would like to:
List the open proposals
Check whether I have already voted on these proposals
Check my voting history
Vote on the ...
1
vote
1
answer
151
views
Where to find the documents matching the dao proposals hash?
In each proposals of the DAO there is a hash that I guess is here for us to check the proposal document matches the submission. But where to find these documents? Any official link where links to each ...
4
votes
2
answers
2k
views
How can I view The DAO proposals including the current voting status?
The EtherScan.io website provides a page for The DAO proposals.
This page does not provide the current voting status. How can I view The DAO proposals including the current voting status?
8
votes
3
answers
695
views
How to force one person to only vote once?
Using DAOs, today we have The DAO that aims to be an autonomous company management system. It's ruled by the fact that the more parts of the company you own, the more voting power you own. As this is ...
4
votes
1
answer
218
views
Is The DAO voting right proportional to the account tokens balance?
Will I have more power on decisions if my token balance is high, or do I always have one vote whatever my balance is?
3
votes
1
answer
181
views
Can I move some DAO token to another account to vote twice?
If I split my DAO tokens to 2 accounts before voting, will I be able to vote twice?
Thanks.
8
votes
1
answer
333
views
Passive DAO participation vs. Active DAO Participation
If being part of "The DAO" is similar to being a shareholder in a company, how is the passive DAO Token holder affected by decisions made by the active participants. If for example, the Slock.it ...
29
votes
2
answers
14k
views
How many transactions can the network handle?
The voting on ethereum analysis by Dominik Schiener calculated that it would take 40 days to hold the UK general elections on the ethereum blockchain due to the transaction and gas limits.
I redid ...