pub fn sweep_fees<'info>(ctx: Context<'_, '_, '_, 'info, SweepFees<'info>>) -> Result<()> {
        let cpi_ctx = CpiContext::from(&*ctx.accounts);
        let seeds = [
            ctx.accounts.dex.dex_program.key.as_ref(),
            &[ctx.accounts.officer.bumps.bump],
        ];
        dex::sweep_fees(cpi_ctx.with_signer(&[&seeds])).map_err(Into::into)
    }
/// Transfers fees from the dex to the CFO.
Transfers fees from the dex to the CFO.
Transfers fees from the dex to the CFO .
pub fn sweep_fees<'info>(ctx: Context<'_, '_, '_, 'info, SweepFees<'info>>) -> Result<()> {
        let cpi_ctx = CpiContext::from(&*ctx.accounts);
        let seeds = [
            ctx.accounts.dex.dex_program.key.as_ref(),
            &[ctx.accounts.officer.bumps.bump],
        ];
        dex::sweep_fees(cpi_ctx.with_signer(&[&seeds])).map_err(Into::into)
    }
pub fn sweep_fees < ' info > ( ctx : Context < ' _ , ' _ , ' _ , ' info , SweepFees < ' info > > ) -> Result < ( ) > { let cpi_ctx = CpiContext :: from ( & * ctx . accounts ) ; let seeds = [ ctx . accounts . dex . dex_program . key . as_ref ( ) , & [ ctx . accounts . officer . bumps . bump ] , ] ; dex :: sweep_fees ( cpi_ctx . with_signer ( & [ & seeds ] ) ) . map_err ( Into :: into ) }
Transfers fees from the dex to the CFO.
Transfers fees from the dex to the CFO .
ctx
Context<'_, '_, '_, 'info, SweepFees<'info>>
ctx
Context<'_, '_, '_, 'info, SweepFees<'info>>