mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
Code TLC
This commit is contained in:
@@ -248,7 +248,7 @@ pub fn crown(signer: Pubkey, current_top_staker: Pubkey) -> Instruction {
|
||||
|
||||
/// Builds a mine instruction.
|
||||
pub fn mine(
|
||||
miner: Pubkey,
|
||||
signer: Pubkey,
|
||||
proof_authority: Pubkey,
|
||||
bus: Pubkey,
|
||||
solution: Solution,
|
||||
@@ -257,7 +257,7 @@ pub fn mine(
|
||||
Instruction {
|
||||
program_id: crate::id(),
|
||||
accounts: vec![
|
||||
AccountMeta::new(miner, true),
|
||||
AccountMeta::new(signer, true),
|
||||
AccountMeta::new(bus, false),
|
||||
AccountMeta::new_readonly(CONFIG_ADDRESS, false),
|
||||
AccountMeta::new(proof, false),
|
||||
|
||||
@@ -262,6 +262,7 @@ pub fn load_treasury_tokens<'a, 'info>(
|
||||
if info.key.ne(&TREASURY_TOKENS_ADDRESS) {
|
||||
return Err(ProgramError::InvalidSeeds);
|
||||
}
|
||||
|
||||
load_token_account(info, Some(&TREASURY_ADDRESS), &MINT_ADDRESS, is_writable)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user