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 }