pub fn flash_loan_end_v2<'key, 'accounts, 'remaining, 'info>(
    ctx: Context<'key, 'accounts, 'remaining, 'info, FlashLoanEnd<'info>>,
    num_loans: u8,
    flash_loan_type: FlashLoanType
) -> Result<()>