mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-10 07:36:48 +00:00
fix depoy
This commit is contained in:
@@ -94,8 +94,8 @@ pub fn process_deploy(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResul
|
||||
miner.cumulative = [0; 25];
|
||||
miner.rewards_sol = 0;
|
||||
miner.rewards_ore = 0;
|
||||
miner.round_id = round.id;
|
||||
miner.checkpoint_id = round.id;
|
||||
miner.round_id = 0;
|
||||
miner.checkpoint_id = 0;
|
||||
miner.lifetime_rewards_sol = 0;
|
||||
miner.lifetime_rewards_ore = 0;
|
||||
miner
|
||||
|
||||
@@ -12,7 +12,7 @@ pub fn process_wrap(accounts: &[AccountInfo<'_>], _data: &[u8]) -> ProgramResult
|
||||
signer_info.is_signer()?;
|
||||
config_info
|
||||
.as_account::<Config>(&ore_api::ID)?
|
||||
.assert(|c| c.admin == *signer_info.key)?;
|
||||
.assert(|c| c.bury_authority == *signer_info.key)?;
|
||||
let treasury = treasury_info.as_account_mut::<Treasury>(&ore_api::ID)?;
|
||||
treasury_sol_info
|
||||
.is_writable()?
|
||||
|
||||
Reference in New Issue
Block a user