reset bus top balance

This commit is contained in:
Hardhat Chad
2024-07-20 19:17:19 +00:00
parent 7954bfa9ec
commit f9015f01c2

View File

@@ -91,6 +91,7 @@ pub fn process_reset<'a, 'info>(
total_theoretical_rewards.saturating_add(bus.theoretical_rewards);
bus.rewards = BUS_EPOCH_REWARDS;
bus.theoretical_rewards = 0;
bus.top_balance = 0;
}
let total_epoch_rewards = MAX_EPOCH_REWARDS.saturating_sub(total_remaining_rewards);