mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 15:10:13 +00:00
remove unneeded data borrow
This commit is contained in:
@@ -252,8 +252,6 @@ pub fn process_mine(accounts: &[AccountInfo], data: &[u8]) -> ProgramResult {
|
||||
//
|
||||
// Busses are limited to distributing 1 ORE per epoch. This is also the maximum amount that will be paid out
|
||||
// for any given hash.
|
||||
let mut bus_data = bus_info.data.borrow_mut();
|
||||
let bus = Bus::try_from_bytes_mut(&mut bus_data)?;
|
||||
let reward_actual = reward.min(bus.rewards).min(ONE_ORE);
|
||||
|
||||
// Update balances.
|
||||
|
||||
Reference in New Issue
Block a user