From 19153b887441bc00d30e273a906d9dc1e83380e9 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 9 Aug 2022 14:22:59 +0200 Subject: [PATCH] Client: Fix jupiter api field that is sometimes null --- client/src/jupiter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/jupiter.rs b/client/src/jupiter.rs index d9e70af56..496e9f80b 100644 --- a/client/src/jupiter.rs +++ b/client/src/jupiter.rs @@ -15,7 +15,7 @@ pub struct QueryRoute { pub out_amount: u64, pub amount: u64, pub other_amount_threshold: u64, - pub out_amount_with_slippage: u64, + pub out_amount_with_slippage: Option, pub swap_mode: String, pub price_impact_pct: f64, pub market_infos: Vec,