From 347ff770bdfcfefa72b974830af7b27f7b554b62 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 4 May 2021 11:09:00 +0000 Subject: [PATCH] Correct days/year (#17024) (#17032) (cherry picked from commit 46d2755205b59b1a7410cef9c5d297d7bb260830) Co-authored-by: Tyera Eulberg --- cli/src/stake.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/stake.rs b/cli/src/stake.rs index 05caa15f32..d383b97368 100644 --- a/cli/src/stake.rs +++ b/cli/src/stake.rs @@ -1717,7 +1717,7 @@ pub fn make_cli_reward( let rate_change = reward.amount as f64 / (reward.post_balance - reward.amount) as f64; let wallclock_epochs_per_year = - (SECONDS_PER_DAY * 356) as f64 / wallclock_epoch_duration as f64; + (SECONDS_PER_DAY * 365) as f64 / wallclock_epoch_duration as f64; let apr = rate_change * wallclock_epochs_per_year; Some(CliEpochReward {