disable single sided withdraw and deposit
This commit is contained in:
parent
bd33fef3d3
commit
22f639c361
|
@ -727,6 +727,8 @@ impl Processor {
|
|||
minimum_pool_token_amount: u64,
|
||||
accounts: &[AccountInfo],
|
||||
) -> ProgramResult {
|
||||
return Err(SwapError::UnsupportedCurveOperation.into());
|
||||
|
||||
let account_info_iter = &mut accounts.iter();
|
||||
let swap_info = next_account_info(account_info_iter)?;
|
||||
let authority_info = next_account_info(account_info_iter)?;
|
||||
|
@ -841,6 +843,8 @@ impl Processor {
|
|||
maximum_pool_token_amount: u64,
|
||||
accounts: &[AccountInfo],
|
||||
) -> ProgramResult {
|
||||
return Err(SwapError::UnsupportedCurveOperation.into());
|
||||
|
||||
let account_info_iter = &mut accounts.iter();
|
||||
let swap_info = next_account_info(account_info_iter)?;
|
||||
let authority_info = next_account_info(account_info_iter)?;
|
||||
|
|
Loading…
Reference in New Issue