From b67ecdf03956bcda227847a63fd23e1b99688aa2 Mon Sep 17 00:00:00 2001 From: jackburrus Date: Sat, 20 Apr 2024 17:24:22 +0530 Subject: [PATCH 1/2] separate market impact and term --- .../OpenShortPreview/OpenShortPreview.tsx | 82 ++++++++++--------- 1 file changed, 45 insertions(+), 37 deletions(-) diff --git a/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx b/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx index 2fe4cf3b7..1db603383 100644 --- a/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx +++ b/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx @@ -91,44 +91,52 @@ export function OpenShortPreview({ } /> - - {spotRateAfterOpen ? `${formatRate(spotRateAfterOpen)}% APR` : "-"} - - } - /> - - {getMarketImpactLabel(fixedAPR?.apr, spotRateAfterOpen)} - - } - /> +
+
Market Impact
+ + {spotRateAfterOpen + ? `${formatRate(spotRateAfterOpen)}% APR` + : "-"} + + } + /> + + {getMarketImpactLabel(fixedAPR?.apr, spotRateAfterOpen)} + + } + /> +
- +
+
Term
+ +
); } From e98f8c6ed929cec1eae10d6a33f1aa19822b937e Mon Sep 17 00:00:00 2001 From: jackburrus Date: Mon, 22 Apr 2024 16:40:14 +0530 Subject: [PATCH 2/2] Split maturity into two --- .../shorts/OpenShortPreview/OpenShortPreview.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx b/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx index 1db603383..da46e593c 100644 --- a/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx +++ b/apps/hyperdrive-trading/src/ui/hyperdrive/shorts/OpenShortPreview/OpenShortPreview.tsx @@ -132,9 +132,12 @@ export function OpenShortPreview({
Term
+