Skip to content

Commit ecae8cc

Browse files
committed
Update deprecation comments
1 parent a34dd8b commit ecae8cc

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

interface/src/state.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ pub type StakeActivationStatus = StakeHistoryEntry;
2929
// Means that no more than RATE of current effective stake may be added or subtracted per
3030
// epoch.
3131
#[deprecated(
32-
since = "3.1.0",
33-
note = "Use ORIGINAL_WARMUP_COOLDOWN_RATE_BPS instead"
32+
since = "3.2.0",
33+
note = "Use `warmup_cooldown_allowance::ORIGINAL_WARMUP_COOLDOWN_RATE_BPS` instead"
3434
)]
3535
pub const DEFAULT_WARMUP_COOLDOWN_RATE: f64 = 0.25;
36-
#[deprecated(since = "3.1.0", note = "Use TOWER_WARMUP_COOLDOWN_RATE_BPS instead")]
36+
#[deprecated(
37+
since = "3.2.0",
38+
note = "Use `warmup_cooldown_allowance::TOWER_WARMUP_COOLDOWN_RATE_BPS` instead"
39+
)]
3740
pub const NEW_WARMUP_COOLDOWN_RATE: f64 = 0.09;
3841
pub const DEFAULT_SLASH_PENALTY: u8 = ((5 * u8::MAX as usize) / 100) as u8;
3942

40-
#[deprecated(since = "3.1.0", note = "Use warmup_cooldown_rate_bps() instead")]
43+
#[deprecated(since = "3.2.0", note = "Use warmup_cooldown_rate_bps() instead")]
4144
pub fn warmup_cooldown_rate(current_epoch: Epoch, new_rate_activation_epoch: Option<Epoch>) -> f64 {
4245
if current_epoch < new_rate_activation_epoch.unwrap_or(u64::MAX) {
4346
DEFAULT_WARMUP_COOLDOWN_RATE
@@ -534,7 +537,7 @@ impl Delegation {
534537

535538
/// Previous implementation that uses floats under the hood to calculate warmup/cooldown
536539
/// rate-limiting. New `stake_v2()` uses integers (upstream eBPF-compatible).
537-
#[deprecated(since = "3.1.0", note = "Use stake_v2() instead")]
540+
#[deprecated(since = "3.2.0", note = "Use stake_v2() instead")]
538541
pub fn stake<T: StakeHistoryGetEntry>(
539542
&self,
540543
epoch: Epoch,
@@ -548,7 +551,7 @@ impl Delegation {
548551
/// Previous implementation that uses floats under the hood to calculate warmup/cooldown
549552
/// rate-limiting. New `stake_activating_and_deactivating_v2()` uses integers (upstream eBPF-compatible).
550553
#[deprecated(
551-
since = "3.1.0",
554+
since = "3.2.0",
552555
note = "Use stake_activating_and_deactivating_v2() instead"
553556
)]
554557
pub fn stake_activating_and_deactivating<T: StakeHistoryGetEntry>(
@@ -638,7 +641,7 @@ impl Delegation {
638641
}
639642

640643
// returned tuple is (effective, activating) stake
641-
#[deprecated(since = "3.1.0", note = "Use stake_and_activating_v2() instead")]
644+
#[deprecated(since = "3.2.0", note = "Use stake_and_activating_v2() instead")]
642645
fn stake_and_activating<T: StakeHistoryGetEntry>(
643646
&self,
644647
target_epoch: Epoch,
@@ -940,7 +943,7 @@ pub struct Stake {
940943
}
941944

942945
impl Stake {
943-
#[deprecated(since = "3.1.0", note = "Use stake_v2() instead")]
946+
#[deprecated(since = "3.2.0", note = "Use stake_v2() instead")]
944947
pub fn stake<T: StakeHistoryGetEntry>(
945948
&self,
946949
epoch: Epoch,

0 commit comments

Comments
 (0)