Comments (1)
@uivlis, thinking on this contract, it could be coded with a very similar structure to Issuance.sol.
Each Voting.sol
contract that is deployed represents one voting process towards a single proposal.
Voting.sol
takes in the constructor the address for an ERC20 contract to use as voting token, the quorum and the majority.
Voting in the proposal actually means transferring those ERC20 tokens as a "yes" or a "no" to the voting contract.
Votes can be withdrawn at any time, meaning that the ERC20 tokens go back to the voter.
If at any time the quorum (% of ERC20 totalSupply) and majority (% of yes vs no) are met anyone can move the Voting to the "PASSED" status. Votes can be now withdrawn, the Voting remains as "PASSED".
Not sure how to move a vote to "FAILED" status, we can think of that later.
Executing the proposal that results of the Voting would be done by a different contract. Let's do this one and then discuss proposal execution.
from contracts.
Related Issues (20)
- Include votes in `DAO.sol` for distributing dividends HOT 22
- Fix ERC20DividendableEth for supply changes.
- Fix ERC20DividendableEth for transfers. HOT 1
- Fix Fixidity conversions in ERC20DividendableEth HOT 1
- Add multiple base support to DecimalMath.sol HOT 4
- DAO should be able to raise funds through a Voting process HOT 8
- Replace Fixidity for DecimalMath in Issuance*.sol
- Get Voting out of drafts.
- Implement a generic `propose` function in DAO.sol. HOT 1
- Refactoring `Voting.enact()` - Multiple proposals HOT 1
- Remove unused return values in Lists
- Remove Fixidity imports
- DAO.sol needs a proposal to cancel an investment.
- Upgrade ERC20MultiDividendable
- "Contract code size exceeds 24576 bytes" during coverage HOT 6
- Consider adopting ERC1726 for ERC20DividendableEth HOT 1
- _grantRole in AccessControl.sol is private HOT 1
- Introduce array of roleIds HOT 3
- Crytic.io security analysis of the HQ20 contracts
- https://hq20-contracts.netlify.app/ Page not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contracts.