SHARE
TWEET

Untitled

a guest Jul 17th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mapping (address => uint256) private _SavedDividend;
  2.      
  3. constructor() public payable ERC20Detailed(tokenName, tokenSymbol, tokenDecimals) {
  4. _mint(msg.sender, _totalSupply);
  5. _SavedDividend = 0;
  6.      
  7. function ViewDividend(address staker) public view returns (uint256) {
  8. require(msg.sender != (address(0)));
  9.  
  10. _SavedDividend = _balances[this].div(_totalSupply).mul(_balances[msg.sender]);
  11. return _SavedDividend;
  12.      
  13. emit Transfer(address(this), msg.sender, _SavedDividend[msg.sender]);
  14. _balances[this] = _balances[this].sub(_SavedDividend[msg.sender]);
  15. _SavedDividend[msg.sender] = 0;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top