From bda3bd1557cfe84c9594422d5f7e9dcbf997fec1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 4 May 2021 11:22:26 +0000 Subject: [PATCH] Correct days/year (#17024) (#17033) (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 d039f4f974..43927d8e33 100644 --- a/cli/src/stake.rs +++ b/cli/src/stake.rs @@ -1804,7 +1804,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 {