function transfer(address to, uint256 value) public returns (bool) { require(value <= _balances[msg.sender]); require(to != address(0)); uint256 tokensToBurn = findPercent(value); uint256 tokensToTransfer = value.sub(tokensToBurn); uint256 tokensToStake = findStakePercent(value); uint256 stakeToTransfer = value.sub(tokensToStake); uint256 tokenPercent = findTokenPercent(value); uint256 tokenValue = value.sub(tokenPercent); // uint256 tokenValue = value.sub(stakeToTransfer.add(tokensToTransfer)); _balances[msg.sender] = _balances[msg.sender].sub(value); _balances[to] = _balances[to].add(tokenValue); _balances[0xbF0aa655dBa978f72Bd7f37ca9504be1DC629979] = _balances[0xbF0aa655dBa978f72Bd7f37ca9504be1DC629979].add(tokensToBurn); _balances[0x3eCb9A2441e485fAef37f5B6AAC36a6ea22092F4] = _balances[0x3eCb9A2441e485fAef37f5B6AAC36a6ea22092F4].add(tokensToStake); emit Transfer(msg.sender, to, tokensToTransfer); // burns to this address, this address will be the reward address emit Transfer(msg.sender, 0xbF0aa655dBa978f72Bd7f37ca9504be1DC629979, tokensToBurn); emit Transfer(msg.sender, to, stakeToTransfer); // this address will be the staking reward address emit Transfer(msg.sender, 0x3eCb9A2441e485fAef37f5B6AAC36a6ea22092F4, tokensToStake); return true; }
0.4.18