From 5eae6ee14576d6fd75010d9ad8a106624cbe7134 Mon Sep 17 00:00:00 2001 From: mike-dydx Date: Mon, 1 Jul 2024 11:01:43 -0400 Subject: [PATCH 1/2] handle short position case for displaying liquidation price --- .../dydxAdjustMarginInputViewBuilder.swift | 48 +++++++++++-------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/dydx/dydxPresenters/dydxPresenters/_v4/Trade/Margin/dydxAdjustMarginInputViewBuilder.swift b/dydx/dydxPresenters/dydxPresenters/_v4/Trade/Margin/dydxAdjustMarginInputViewBuilder.swift index ed8da73c3..8a4cc10cf 100644 --- a/dydx/dydxPresenters/dydxPresenters/_v4/Trade/Margin/dydxAdjustMarginInputViewBuilder.swift +++ b/dydx/dydxPresenters/dydxPresenters/_v4/Trade/Margin/dydxAdjustMarginInputViewBuilder.swift @@ -113,17 +113,19 @@ private class dydxAdjustMarginInputViewPresenter: HostedViewPresenter Date: Mon, 1 Jul 2024 12:25:23 -0400 Subject: [PATCH 2/2] remove viewmodel caching --- docs/pull_request_template.md | 6 +++- .../dydxPortfolioPositionsViewPresenter.swift | 17 +++-------- .../Sections/dydxPortfolioPositionsView.swift | 30 +++++++++---------- 3 files changed, 24 insertions(+), 29 deletions(-) diff --git a/docs/pull_request_template.md b/docs/pull_request_template.md index 0b722aa9f..93b21295e 100644 --- a/docs/pull_request_template.md +++ b/docs/pull_request_template.md @@ -20,7 +20,11 @@ _Provide a clear and concise description of the fix(es) or change(s) you made. I | Before | After | |--------|-------| -| | | +| | | +| | | +| | | +| | | +| | | |