Created
November 12, 2017 20:40
-
-
Save skmgoldin/44e2a37880a487d7aeab7fe333479a07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function voterReward(Data storage _self, address _voter, uint _salt) | |
public constant returns (uint) { | |
uint voterTokens = _self.voting.getNumPassingTokens(_voter, _self.challengeID, _salt); | |
return (voterTokens * _self.rewardPool) / _self.winningTokens; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment