From 5d3167a064cb6b9150f5b0d9f5462fb0a34e5bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Sim=C3=A3o?= Date: Mon, 21 Feb 2022 23:02:34 +0100 Subject: [PATCH] Fixed liquidation price calculation --- src/pages/borrow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/borrow.tsx b/src/pages/borrow.tsx index 5bb1a07..0929a9c 100644 --- a/src/pages/borrow.tsx +++ b/src/pages/borrow.tsx @@ -46,7 +46,7 @@ const Borrow: React.FC = () => { if (nearQuote && inputAmount && outputAmount) { return isQuid ? Number(Number(inputAmount) / (Number(outputAmount) * nearQuote)) - : (Number(inputAmount) * nearQuote) / Number(outputAmount) + : Number(outputAmount) / (Number(inputAmount) * nearQuote) } return 0 }