mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-02 07:36:48 +00:00
reset update
This commit is contained in:
@@ -63,9 +63,9 @@ pub fn process_reset(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResul
|
|||||||
let bus = Bus::try_from_bytes_mut(&mut bus_data)?;
|
let bus = Bus::try_from_bytes_mut(&mut bus_data)?;
|
||||||
|
|
||||||
// Track top balance.
|
// Track top balance.
|
||||||
if bus.top_balance.gt(&top_balance) {
|
// if bus.top_balance.gt(&top_balance) {
|
||||||
top_balance = bus.top_balance;
|
// top_balance = bus.top_balance;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Track accumulators.
|
// Track accumulators.
|
||||||
total_remaining_rewards = total_remaining_rewards.saturating_add(bus.rewards);
|
total_remaining_rewards = total_remaining_rewards.saturating_add(bus.rewards);
|
||||||
|
|||||||
Reference in New Issue
Block a user