File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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" ) ]
8688pub 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 ,
You can’t perform that action at this time.
0 commit comments