From bcec2733e2d74bb3452567ea41b646f4172aeab1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 23:03:55 +0000 Subject: [PATCH 1/2] Initial plan From e84a517be393c9faabc7d11ba097c1fa5e9422a2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 23:06:01 +0000 Subject: [PATCH 2/2] Fix if let chain formatting to single lines in client.rs Co-authored-by: gemcoder21 <104884878+gemcoder21@users.noreply.github.com> --- crates/gem_hypercore/src/rpc/client.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/crates/gem_hypercore/src/rpc/client.rs b/crates/gem_hypercore/src/rpc/client.rs index 232d012a0..fa98fe68e 100644 --- a/crates/gem_hypercore/src/rpc/client.rs +++ b/crates/gem_hypercore/src/rpc/client.rs @@ -158,9 +158,7 @@ impl HyperCoreClient { "type": "clearinghouseState", "user": user }); - if let Some(dex) = dex - && !dex.is_empty() - { + if let Some(dex) = dex && !dex.is_empty() { payload["dex"] = json!(dex); } self.info(payload).await @@ -172,9 +170,7 @@ impl HyperCoreClient { pub async fn get_metadata_with_dex(&self, dex: Option) -> Result> { let mut payload = json!({"type": "metaAndAssetCtxs"}); - if let Some(dex) = dex - && !dex.is_empty() - { + if let Some(dex) = dex && !dex.is_empty() { payload["dex"] = json!(dex); } self.info(payload).await @@ -276,9 +272,7 @@ impl HyperCoreClient { "type": "frontendOpenOrders", "user": user }); - if let Some(dex) = dex - && !dex.is_empty() - { + if let Some(dex) = dex && !dex.is_empty() { payload["dex"] = json!(dex); } self.info(payload).await @@ -293,9 +287,7 @@ impl HyperCoreClient { "type": "portfolio", "user": user }); - if let Some(dex) = dex - && !dex.is_empty() - { + if let Some(dex) = dex && !dex.is_empty() { payload["dex"] = json!(dex); } self.info(payload).await