Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 15, 2025
1 parent 5759b52 commit 1d64ce2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/svm/testing/src/express_relay/swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ use {
},
};

/// Builds a swap instruction.
/// If provides two overrides, `trader_output_ata_override` and `mint_fee_override`, that may result in an invalid instruction and are meant to be used for testing.
#[allow(clippy::too_many_arguments)]
pub fn create_swap_instruction(
searcher: Pubkey,
Expand Down Expand Up @@ -112,6 +114,8 @@ pub fn create_swap_instruction(
}
}

/// Builds a set of instructions to perform a swap, including creating the associated token accounts.
/// If provides two overrides, `trader_output_ata_override` and `mint_fee_override`, that may result in invalid instructions and are meant to be used for testing.
#[allow(clippy::too_many_arguments)]
pub fn build_swap_instructions(
searcher: Pubkey,
Expand Down

0 comments on commit 1d64ce2

Please sign in to comment.