Create a governance contract that meets the requirements:
DONE 1. Admin contract creates voting with parameters (minimum votes, percentage number of votes required to settlement, start timestamp and end timestamp). Admin can update those parameters in the future. DONE 2. Each address has only 1 vote -> For / Against / Abstain. DONE 3. Summary for e.g rejected, accepted, not resolved with stats how much voted For / Against / Abstain. 01 4. [optional] Whitelist for addresses which can participate in voting. DONE 5. [optional] Voting based on some ERC20 token balance.
- Minimum votes: 10
- Percentage number of votes required to settlement: <0, 30> -rejected, (30, 70)-not resolved, <70, 100>-accepted
- Start date: 1648569500
- End date: 1648589500