Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 9, 2025
1 parent 0e6eb78 commit c6e8b2b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions programs/helium-sub-daos/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,16 @@ pub fn caclulate_vhnt_info(

let pre_genesis_end_fall_rate =
calculate_fall_rate(vehnt_at_curr_ts, vehnt_at_genesis_end, seconds_to_genesis).unwrap();
let post_genesis_end_fall_rate = calculate_fall_rate(
vehnt_at_genesis_end_exact,
vehnt_at_delegation_end,
seconds_from_genesis_to_end,
)
.unwrap();
let post_genesis_end_fall_rate = if position.genesis_end < delegation_end_ts {
calculate_fall_rate(
vehnt_at_genesis_end_exact,
vehnt_at_delegation_end,
seconds_from_genesis_to_end,
)
.unwrap()
} else {
0
};

let mut genesis_end_vehnt_correction = 0;
let mut genesis_end_fall_rate_correction = 0;
Expand Down

0 comments on commit c6e8b2b

Please sign in to comment.