function withdrawReward() external {

        uint i = 0;
        uint256 ethAmount = 0;

        uint256 tokenM=0;
        
        if (block.timestamp -  requestWithdraws[msg.sender][roundCounter].time[i] > holdTime && block.timestamp -  requestWithdraws[msg.sender][roundCounter].time[i] < holdMax){
                ethAmount += tokenPrice * requestWithdraws[msg.sender][roundCounter].amount[i];
                tokenM +=requestWithdraws[msg.sender][roundCounter].amount[i];
        }
    
        ethAmount=ethAmount/tokenUnit;
        require(ethAmount > 0);

        emit LogWithdrawal(msg.sender, ethAmount);

        totalSupply = totalSupply.sub(tokenM);

        delete requestWithdraws[msg.sender][roundCounter];

        uint256 fee=ethAmount*withdrawFee/1000;

        balances[msg.sender] = balances[msg.sender].sub(tokenM);

        msg.sender.transfer(ethAmount-fee);
        owner.transfer(fee);

    }