usesteel::*;usesuper::OreAccount;/// Bus accounts are responsible for distributing mining rewards. There are 8 busses total
/// to minimize write-lock contention and allow Solana to process mine instructions in parallel.
#[repr(C)]#[derive(Clone, Copy, Debug, PartialEq, Pod, Zeroable)]pubstructBus{/// The ID of the bus account.
pubid:u64,
/// The remaining rewards this bus has left to payout in the current epoch.
pubrewards:u64,
/// The rewards this bus would have paid out in the current epoch if there no limit.
/// This is used to calculate the updated reward rate.
pubtheoretical_rewards:u64,
/// The largest known stake balance seen by the bus this epoch.
pubtop_balance:u64,
}account!(OreAccount, Bus);