fix StakeCalculator