def get_rc_cost(self, resource_count):
    'Returns the RC costs based on the resource_count'
    pools = self.get_resource_pool()
    params = self.get_resource_params()
    config = self.get_config()
    dyn_param = self.get_dynamic_global_properties()
    rc_regen = (int(Amount(dyn_param['total_vesting_shares'], crea_instance=self)) / (CREA_RC_REGEN_TIME / config['CREA_BLOCK_INTERVAL']))
    total_cost = 0
    if (rc_regen == 0):
        return total_cost
    for resource_type in resource_count:
        curve_params = params[resource_type]['price_curve_params']
        current_pool = int(pools[resource_type]['pool'])
        count = resource_count[resource_type]
        count *= params[resource_type]['resource_dynamics_params']['resource_unit']
        cost = self._compute_rc_cost(curve_params, current_pool, count, rc_regen)
        total_cost += cost
    return total_cost
Returns the RC costs based on the resource_count
def get_rc_cost(self, resource_count):
    
    pools = self.get_resource_pool()
    params = self.get_resource_params()
    config = self.get_config()
    dyn_param = self.get_dynamic_global_properties()
    rc_regen = (int(Amount(dyn_param['total_vesting_shares'], crea_instance=self)) / (CREA_RC_REGEN_TIME / config['CREA_BLOCK_INTERVAL']))
    total_cost = 0
    if (rc_regen == 0):
        return total_cost
    for resource_type in resource_count:
        curve_params = params[resource_type]['price_curve_params']
        current_pool = int(pools[resource_type]['pool'])
        count = resource_count[resource_type]
        count *= params[resource_type]['resource_dynamics_params']['resource_unit']
        cost = self._compute_rc_cost(curve_params, current_pool, count, rc_regen)
        total_cost += cost
    return total_cost