From 80f0aea08183c4a7137e7471068edb52fa25bd34 Mon Sep 17 00:00:00 2001 From: man0s <95379755+losman0s@users.noreply.github.com> Date: Mon, 28 Aug 2023 19:33:54 +0800 Subject: [PATCH] fix(mfi-v2-ui): asset weights --- .../src/components/AssetsList/AssetRow/AssetRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx index ddf6cb5853..f5472e914c 100644 --- a/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx +++ b/apps/marginfi-v2-ui/src/components/AssetsList/AssetRow/AssetRow.tsx @@ -460,8 +460,8 @@ const AssetRow: FC<{ style={{ fontWeight: 300 }} > {isInLendingMode - ? bankInfo.bank.config.assetWeightMaint.toNumber() > 0 - ? (bankInfo.bank.config.assetWeightMaint.toNumber() * 100).toFixed(0) + "%" + ? bankInfo.bank.config.assetWeightInit.toNumber() > 0 + ? (bankInfo.bank.config.assetWeightInit.toNumber() * 100).toFixed(0) + "%" : "-" : ((1 / bankInfo.bank.config.liabilityWeightInit.toNumber()) * 100).toFixed(0) + "%"}