This commit is contained in:
Hardhat Chad
2025-09-29 11:59:23 -07:00
parent 944845fc74
commit f9382ebdd6

View File

@@ -72,7 +72,7 @@ impl Stake {
amount
}
fn update_rewards(&mut self, treasury: &Treasury) {
pub fn update_rewards(&mut self, treasury: &Treasury) {
// Accumulate rewards, weighted by stake balance.
if treasury.rewards_factor > self.rewards_factor {
let accumulated_rewards = treasury.rewards_factor - self.rewards_factor;