From 7ddcf82ae62482faeba8c56f48f1a409a2550907 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Tue, 27 Aug 2024 15:02:13 +0000 Subject: [PATCH] comment out unused var --- program/src/reset.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/src/reset.rs b/program/src/reset.rs index dd3db79..b00a6ba 100644 --- a/program/src/reset.rs +++ b/program/src/reset.rs @@ -67,9 +67,9 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul let mut top_balance = 0u64; for bus in busses { // Track top balance. - // if bus.top_balance.gt(&top_balance) { - // top_balance = bus.top_balance; - // } + if bus.top_balance.gt(&top_balance) { + top_balance = bus.top_balance; + } // Track accumulators. total_remaining_rewards = total_remaining_rewards.saturating_add(bus.rewards);