pub fn warmup_cooldown_rate(
    current_epoch: u64,
    new_rate_activation_epoch: Option<u64>
) -> f64