From 552b5c4527b50d6bde08b9c88f3dedd1560014a5 Mon Sep 17 00:00:00 2001 From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com> Date: Fri, 18 Dec 2020 08:57:05 -0600 Subject: [PATCH] fix change ltv calc --- src/hooks/useEnrichedLendingObligations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useEnrichedLendingObligations.ts b/src/hooks/useEnrichedLendingObligations.ts index 59f7a61..2983114 100644 --- a/src/hooks/useEnrichedLendingObligations.ts +++ b/src/hooks/useEnrichedLendingObligations.ts @@ -86,7 +86,7 @@ export function useEnrichedLendingObligations() { : item.collateralReserve.info.dexMarket ); - ltv = (100 * collateral) / borrowedAmount; + ltv = (100 * borrowedAmount) / collateral; } const liquidationThreshold =