@@ -1024,6 +1024,7 @@ async fn process_jup_swap<T: Signers>(
10241024 ui_amount : Option < f64 > ,
10251025 slippage_bps : u64 ,
10261026 lot_selection_method : LotSelectionMethod ,
1027+ lot_numbers : Option < HashSet < usize > > ,
10271028 signers : T ,
10281029 existing_signature : Option < Signature > ,
10291030 if_from_balance_exceeds : Option < u64 > ,
@@ -1051,6 +1052,7 @@ async fn process_jup_swap<T: Signers>(
10511052 to_token,
10521053 to_token_price,
10531054 lot_selection_method,
1055+ lot_numbers,
10541056 ) ?;
10551057 } else {
10561058 let amount = match ui_amount {
@@ -1228,6 +1230,7 @@ async fn process_jup_swap<T: Signers>(
12281230 to_token,
12291231 to_token_price,
12301232 lot_selection_method,
1233+ lot_numbers,
12311234 ) ?;
12321235
12331236 if !send_transaction_until_expired ( rpc_clients, & transaction, last_valid_block_height)
@@ -5287,6 +5290,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
52875290 price exceeds this percentage") ,
52885291 )
52895292 . arg ( lot_selection_arg ( ) )
5293+ . arg ( lot_numbers_arg ( ) )
52905294 . arg (
52915295 Arg :: with_name ( "transaction" )
52925296 . long ( "transaction" )
@@ -6471,6 +6475,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
64716475 let address = address. expect ( "address" ) ;
64726476 let lot_selection_method =
64736477 value_t_or_exit ! ( arg_matches, "lot_selection" , LotSelectionMethod ) ;
6478+ let lot_numbers = lot_numbers_of ( arg_matches, "lot_numbers" ) ;
64746479 let signature = value_t ! ( arg_matches, "transaction" , Signature ) . ok ( ) ;
64756480 let if_from_balance_exceeds = value_t ! ( arg_matches, "if_from_balance_exceeds" , f64 )
64766481 . ok ( )
@@ -6488,6 +6493,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
64886493 ui_amount,
64896494 slippage_bps,
64906495 lot_selection_method,
6496+ lot_numbers,
64916497 vec ! [ signer] ,
64926498 signature,
64936499 if_from_balance_exceeds,
0 commit comments