diff --git a/programs/openbook-v2/src/accounts_ix/place_take_order.rs b/programs/openbook-v2/src/accounts_ix/place_take_order.rs index 083996355..acc1b8663 100644 --- a/programs/openbook-v2/src/accounts_ix/place_take_order.rs +++ b/programs/openbook-v2/src/accounts_ix/place_take_order.rs @@ -48,11 +48,6 @@ pub struct PlaceTakeOrder<'info> { )] pub user_quote_account: Box>, - #[account( - mut, - token::mint = market_quote_vault.mint - )] - /// CHECK: The oracle can be one of several different account types and the pubkey is checked above pub oracle_a: Option>, /// CHECK: The oracle can be one of several different account types and the pubkey is checked above diff --git a/programs/openbook-v2/src/instructions/place_take_order.rs b/programs/openbook-v2/src/instructions/place_take_order.rs index 9c1ca4c56..0a36ac5cf 100644 --- a/programs/openbook-v2/src/instructions/place_take_order.rs +++ b/programs/openbook-v2/src/instructions/place_take_order.rs @@ -7,11 +7,7 @@ use crate::state::*; use crate::token_utils::*; #[allow(clippy::too_many_arguments)] -pub fn place_take_order<'info>( - ctx: Context<'_, '_, '_, 'info, <'info>>, - order: Order, - limit: u8, -) -> Result<()> { +pub fn place_take_order(ctx: Context, order: Order, limit: u8) -> Result<()> { require_gte!(order.max_base_lots, 0, OpenBookError::InvalidInputLots); require_gte!( order.max_quote_lots_including_fees, diff --git a/programs/openbook-v2/src/lib.rs b/programs/openbook-v2/src/lib.rs index 821230dec..4c5a5eb83 100644 --- a/programs/openbook-v2/src/lib.rs +++ b/programs/openbook-v2/src/lib.rs @@ -354,10 +354,7 @@ pub mod openbook_v2 { /// add a new order off the book. /// /// This type of order allows for instant token settlement for the taker. - pub fn place_take_order<'info>( - ctx: Context<'_, '_, '_, 'info, PlaceTakeOrder<'info>>, - args: PlaceTakeOrderArgs, - ) -> Result<()> { + pub fn place_take_order(ctx: Context, args: PlaceTakeOrderArgs) -> Result<()> { require_gte!(args.price_lots, 1, OpenBookError::InvalidInputPriceLots); let order = Order {