/// Creates an open orders account for the given market.
Creates an open orders account for the given market.
Creates an open orders account for the given market .
pub fn create_officer_open_orders(
        ctx: Context<CreateOfficerOpenOrders>,
        _bump: u8,
    ) -> Result<()> {
        let seeds = [
            ctx.accounts.dex_program.key.as_ref(),
            &[ctx.accounts.officer.bumps.bump],
        ];
        let cpi_ctx = CpiContext::from(&*ctx.accounts);
        dex::init_open_orders(cpi_ctx.with_signer(&[&seeds])).map_err(Into::into)
    }
pub fn create_officer_open_orders ( ctx : Context < CreateOfficerOpenOrders > , _bump : u8 , ) -> Result < ( ) > { let seeds = [ ctx . accounts . dex_program . key . as_ref ( ) , & [ ctx . accounts . officer . bumps . bump ] , ] ; let cpi_ctx = CpiContext :: from ( & * ctx . accounts ) ; dex :: init_open_orders ( cpi_ctx . with_signer ( & [ & seeds ] ) ) . map_err ( Into :: into ) }
Creates an open orders account for the given market.
Creates an open orders account for the given market .
ctx
Context<CreateOfficerOpenOrders>
_bump
u8