Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function withdrawRewardFor(address _account) noEther internal returns (bool _success) {
  2. if ((balanceOf(_account) * rewardAccount.accumulatedInput()) / totalSupply < paidOut[_account])
  3. throw;
  4.  
  5. uint reward =
  6. (balanceOf(_account) * rewardAccount.accumulatedInput()) / totalSupply - paidOut[_account];
  7. if (!rewardAccount.payOut(_account, reward))
  8. throw;
  9. paidOut[_account] += reward;
  10. return true;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement