Fix bugs for release (#564)

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-04-25 16:18:35 +02:00 committed by GitHub
parent 7ec8fbffe5
commit 4e4af83d98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,6 @@ use anchor_spl::token::{self, Token, TokenAccount};
#[derive(Accounts)]
pub struct GroupWithdrawInsuranceFund<'info> {
#[account(
mut,
has_one = insurance_vault,
has_one = admin,
constraint = group.load()?.is_ix_enabled(IxGate::GroupWithdrawInsuranceFund) @ MangoError::IxIsDisabled,

View File

@ -26,6 +26,9 @@ pub fn serum3_edit_market(
};
if let Some(force_close) = force_close_opt {
if force_close {
require!(serum3_market.reduce_only, MangoError::SomeError);
}
msg!(
"Force close: old - {:?}, new - {:?}",
serum3_market.force_close,