From 9750b28eb583e3798b79f23f2a564ecffa2e9823 Mon Sep 17 00:00:00 2001 From: rebel117 <> Date: Fri, 15 May 2026 22:04:33 +0800 Subject: [PATCH] Show current and new liquidation price in edit margin modal Display the current liquidation price alongside the new calculated price when adding or removing margin, so users can see the impact of their margin adjustment at a glance. --- src/components/modals/EditMargin.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/modals/EditMargin.svelte b/src/components/modals/EditMargin.svelte index bca6bf5..1d89fbb 100644 --- a/src/components/modals/EditMargin.svelte +++ b/src/components/modals/EditMargin.svelte @@ -52,7 +52,8 @@ }, 50); } - let funding = data.funding || 0; + let funding = data.funding || 0; + let currentLiqPrice = data.position.liqprice; let newLiqPrice = data.position.liqprice; let newMargin = 0; function calculateNewLiquidationPrice(marginDelta, mode) { @@ -151,6 +152,10 @@ +
+ +
+