_ratePenalty 
    ) = getCurrencySettings(_queryType);

    
    require(bytes(_queryString).length > 0);

    
    
    
    
    provider.sendQuery.value(msg.value)(
      _queryString,
      _callInterval,
      _callbackGasLimit,
      _queryType
    );
    return true;
  }

  
  
  

  
  
  
  function setQueryId(
    bytes32 _queryId,
    string _queryType
  )
    external
    onlyContract("ExchangeRateProvider")
    returns (bool)
  {
    if (_queryId[0] != 0x0 && bytes(_queryType)[0] != 0x0) {
      emit QuerySent(_queryType);
      queryTypes[_queryId] = _queryType;
    } else {
      emit NotEnoughBalance();
    }