Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavBortman committed Jul 17, 2018
1 parent 8975254 commit a051da8
Show file tree
Hide file tree
Showing 3 changed files with 828 additions and 629 deletions.
4 changes: 0 additions & 4 deletions contracts/governance/LiquidVoting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ contract LiquidVoting is IVoting, DelegationTable {
}

function internalVote(address _who, bool _yes) internal {

uint tokenBalance = getPowerOf(_who);

require(!addressVotedAlready[_who]);
Expand All @@ -100,7 +99,6 @@ contract LiquidVoting is IVoting, DelegationTable {
}

function getPowerOf(address _who) public view returns(uint){

if(delegations[_who].isDelegator || delegations[_who].isDelegatedFor){
return stdDaoToken.getBalanceAtVoting(votingID, _who) - delegations[_who].blockedTokensForVoting + delegations[_who].tokensForVoting;
}
Expand All @@ -110,9 +108,7 @@ contract LiquidVoting is IVoting, DelegationTable {
}

function getDelegatedToMePower() public view returns(uint) {

return delegations[msg.sender].tokensForVoting;

}

}

0 comments on commit a051da8

Please sign in to comment.