From e49f093d49c1a85e3d61b9b2a4f996ab5a659dba Mon Sep 17 00:00:00 2001 From: peiman3 Date: Thu, 19 Dec 2024 16:45:05 +0330 Subject: [PATCH] Show Issued Debt on dashboard --- .../Positions/PositionTableHeader.tsx | 48 ++++++++----- .../src/components/Positions/PositionsRow.tsx | 69 ++++++++++++++----- 2 files changed, 81 insertions(+), 36 deletions(-) diff --git a/liquidity/ui/src/components/Positions/PositionTableHeader.tsx b/liquidity/ui/src/components/Positions/PositionTableHeader.tsx index e48b940b..9044f183 100644 --- a/liquidity/ui/src/components/Positions/PositionTableHeader.tsx +++ b/liquidity/ui/src/components/Positions/PositionTableHeader.tsx @@ -86,25 +86,39 @@ export function PositionTableHeader() { {network?.preset === 'andromeda' ? null : ( - - + <> + - C-Ratio + Issued - - - C-ratio is a dynamic number that represents a ratio between your locked - collateral and your debt - - - } - > - - - - + + + + + + C-Ratio + + + + C-ratio is a dynamic number that represents a ratio between your locked + collateral and your debt + + + } + > + + + + + )} @@ -225,28 +228,56 @@ export function PositionRow({ {network?.preset === 'andromeda' ? null : ( - - + <> + - - + + + {liquidityPosition.availableCollateral.gt(0) && isRunning && ( + + + + )} + + + - - - + + + + + + + + + + + + )}