Skip to content

Commit d1ad3ba

Browse files
committed
update doc
1 parent a31a7a6 commit d1ad3ba

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

jup-ag-sdk/src/types/swap_transaction.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ pub struct SwapRequest {
8181
pub quote_response: QuoteResponse,
8282
}
8383

84+
/// Only one of these fields should be set at a time.
85+
/// Use either `jito_tip_lamports` or `priority_level_with_max_lamports`, not both.
8486
#[derive(Debug, Serialize, Deserialize)]
8587
#[serde(rename_all = "camelCase")]
8688
pub struct PrioritizationFeeLamports {
@@ -187,9 +189,6 @@ impl SwapRequest {
187189
}
188190

189191
/// Set prioritization fee lamports
190-
///
191-
/// Note:
192-
/// - Cannot be combined with `priority_level_with_max_lamports`.
193192
pub fn prioritization_fee_jito_tip(mut self, fee: u64) -> Self {
194193
self.prioritization_fee_lamports = Some(PrioritizationFeeLamports {
195194
jito_tip_lamports: Some(fee),
@@ -203,9 +202,6 @@ impl SwapRequest {
203202
/// Allows specifying both:
204203
/// - Priority level (e.g., `medium`, `high`)
205204
/// - Maximum cap on lamports paid
206-
///
207-
/// Note:
208-
/// - Cannot be combined with `jito_tip_lamports`.
209205
pub fn prioritization_fee_config(
210206
mut self,
211207
max_lamports: u32,

0 commit comments

Comments
 (0)