Skip to content

Commit

Permalink
Governance: implement + test LiquidDemocracy
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavBortman committed Jul 13, 2018
1 parent bb2f058 commit a64ac8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contracts/governance/LiquidDemocracy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contract DelegationTable is IDelegationTable {
struct Delegator {
mapping (address => uint) tokensForVotingFromAddress;
mapping (address => bool) isDelegatedForFrom;
mapping (address => bool) isDelegatedFor;
mapping (address => bool) isDelegatorFor;
uint delegatorsAmount;
uint delegatedForAmount;
uint tokensForVoting;
Expand All @@ -24,7 +24,7 @@ contract DelegationTable is IDelegationTable {
mapping (address => Delegator) delegations;

constructor(address _votingToken){
votingToken = _votingToken;
votingToken = StdDaoToken(_votingToken);
}

function delegateMyVoiceTo(address _to, uint _tokenAmount) external {
Expand Down Expand Up @@ -67,4 +67,7 @@ contract DelegationTable is IDelegationTable {
// TODO:
contract LiquidVoting is IVoting {




}

0 comments on commit a64ac8a

Please sign in to comment.