public void interest(double rate, Dictionary<String, Double> cur) {
		System.out.println("PROCESSING INTEREST RATES FOR " + name);
		if(hold<0.0001 && hold >-0.0001){
			return;
		}
		
		if(name.equalsIgnoreCase("JPYUSD") ||
				name.equalsIgnoreCase("CADUSD") ||
				name.equalsIgnoreCase("CHFUSD")){
			double amount_int = 0.0;
			double amount_base = 0.0;
			if(hold>0.0){ //need to sell currency to pay rate
				if(cur!=null){
					amount_int = (hold/cur.get("MAX"))/10000.0*rate;
				} else {
					amount_int = (hold/price_b)/10000.0*rate; //amount of $ we need to give up as interest
				}
				amount_base = amount_int/price_s;
				
			} else { //need to buyback dollars to pay rate
				if(cur!=null){
					amount_int = (hold/cur.get("MIN"))/10000.0*rate;
				} else {
					amount_int = (hold/price_s)/10000.0*rate; //amount of $ we need to give up as interest
				}
				amount_base = amount_int/price_b;
			} 	
			hold+=amount_base;
			
		} else {
			double amount_int = hold/10000.0*rate; //amount of $ we need to give up as interest
			double amount_base = 0.0;
			if(hold>0.0){ 
				//convert $ to amount of base currency
				//need to sell currency to pay interest
				amount_base = amount_int/price_s;
			} else {
				amount_base = amount_int/price_b;
			} 
			hold+=amount_base;
		}
	}