Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Dec 21, 2023
1 parent da17449 commit 73f1ca4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,14 +1088,11 @@ async fn process_jup_swap<T: Signers>(
}

println!("Generating {swap_prefix} Transaction...");
let mut swap_request = jup_ag::SwapRequest::new( address, quote.clone());
let mut swap_request = jup_ag::SwapRequest::new(address, quote.clone());
swap_request.wrap_and_unwrap_sol = Some(false);
swap_request.compute_unit_price_micro_lamports = compute_unit_price_micro_lamports;

let mut transaction = jup_ag::swap(swap_request
)
.await?
.swap_transaction;
let mut transaction = jup_ag::swap(swap_request).await?.swap_transaction;

let (recent_blockhash, last_valid_block_height) =
rpc_client.get_latest_blockhash_with_commitment(rpc_client.commitment())?;
Expand Down Expand Up @@ -6036,8 +6033,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let ui_amount = value_t_or_exit!(arg_matches, "amount", f64);
let slippage_bps = value_t_or_exit!(arg_matches, "slippage_bps", u64);

process_jup_quote(from_token, to_token, ui_amount, slippage_bps)
.await?;
process_jup_quote(from_token, to_token, ui_amount, slippage_bps).await?;
}
("swap", Some(arg_matches)) => {
let (signer, address) = signer_of(arg_matches, "address", &mut wallet_manager)?;
Expand Down

0 comments on commit 73f1ca4

Please sign in to comment.