fn calculate_stake_points_and_credits(
stake: &Stake,
new_vote_state: &VoteState,
stake_history: Option<&StakeHistory>,
inflation_point_calc_tracer: Option<impl Fn(&InflationPointCalculationEvent)>,
credits_auto_rewind: bool
) -> CalculatedStakePoints
Expand description
for a given stake and vote_state, calculate how many points were earned (credits * stake) and new value for credits_observed were the points paid