Fix bugs for release (#564)
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
parent
7ec8fbffe5
commit
4e4af83d98
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue