Correct days/year (#17024)

This commit is contained in:
Tyera Eulberg 2021-05-04 04:00:30 -06:00 committed by GitHub
parent f5862c03ec
commit 46d2755205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {