Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mapping (address => uint256) private _SavedDividend;
- constructor() public payable ERC20Detailed(tokenName, tokenSymbol, tokenDecimals) {
- _mint(msg.sender, _totalSupply);
- _SavedDividend = 0;
- function ViewDividend(address staker) public view returns (uint256) {
- require(msg.sender != (address(0)));
- _SavedDividend = _balances[this].div(_totalSupply).mul(_balances[msg.sender]);
- return _SavedDividend;
- emit Transfer(address(this), msg.sender, _SavedDividend[msg.sender]);
- _balances[this] = _balances[this].sub(_SavedDividend[msg.sender]);
- _SavedDividend[msg.sender] = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement