contract ETHVerseLockup is Context, IERC20, Ownable {
    using SafeMath for uint256;
    
    uint256 public unlockTime = 1596808800;  // Fri, 07 Aug 2020 14:00:00 +0000
    address public ethvToken = 0xEeEeeeeEe2aF8D0e1940679860398308e0eF24d6;  // ETHV Token smart contract


    mapping (address => uint256) private _balances;
    mapping (address => mapping (address => uint256)) private _allowances;
    uint256 private _totalSupply;
    string private _name;
    string private _symbol;
    uint8 private _decimals;
    
    
    constructor () public {
        _name = "Ethverse Lockups";
        _symbol = "ETHVL";
        _decimals = 18;
    }
    
    
    function name() public view returns (string memory) {
        return _name;
    }
    
    
    function symbol() public view returns (string memory) {
        return _symbol;
    }
    
    
    function decimals() public view returns (uint8) {
        return _decimals;
    }
    
    
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }
    
    
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }
    
    
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }
    
    
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }
    
    
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }
    
    
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }
    
    
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");
        
        require(now > unlockTime, "tokens locked !");
        
        _burn(sender, amount);
        IERC20(ethvToken).transfer(recipient, amount);
    }
    
    
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }
    
    
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }
    
    
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }
    
    
    function mintTokens(address _to, uint256 amount) external onlyOwner {
        amount = amount * 10**uint256(_decimals);
        IERC20(ethvToken).transferFrom(msg.sender, address(this), amount);
        _mint(_to, amount);
    }
    
    
    // in case uniswap listing extends
    function extendLockTime(uint256 _time) external onlyOwner {
        unlockTime = unlockTime.add(_time);
    }
    
}
function extendLockTime(uint256 _time) external onlyOwner {
    unlockTime = unlockTime.add(_time);
}

// in case uniswap listing extends