contract YoobaEarlyInvest is  Owned,YooStop,Utils {
    IERC20Token public yoobaTokenAddress;


    /**
        @dev constructor
        
    */
    function YoobaEarlyInvest(IERC20Token _yoobaTokenAddress) public{
        yoobaTokenAddress = _yoobaTokenAddress;
    }
    

    
    function withdrawTo(address _to, uint256 _amount)
        public ownerOnly stoppable
        notThis(_to)
    {   
        require(_amount <= this.balance);
        _to.transfer(_amount); // send the amount to the target account
    }
    
    function withdrawERC20TokenTo(IERC20Token _token, address _to, uint256 _amount)
        public
        ownerOnly
        validAddress(_token)
        validAddress(_to)
        notThis(_to)
    {
        assert(_token.transfer(_to, _amount));

    }
    
    function buyToken() internal
    {
        require(!stopped && msg.value >= 0.1 ether);
        uint256  amount = msg.value * 350000;
        assert(yoobaTokenAddress.transfer(msg.sender, amount));
    }

    function() public payable stoppable {
        buyToken();
    }
}
function YoobaEarlyInvest(IERC20Token _yoobaTokenAddress) public{
    yoobaTokenAddress = _yoobaTokenAddress;
}

/**
 @dev constructor
 
 */