From 4103109278183285d163518e0f1e6a368d43c0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Sim=C3=A3o?= Date: Mon, 21 Feb 2022 21:57:02 +0100 Subject: [PATCH] Fixed Gauge calculation --- src/components/CryptoInput/index.tsx | 25 +++++++----- src/components/SwapInput/index.tsx | 61 +++++++++++----------------- src/hooks/useGetBalance.ts | 2 +- src/hooks/useGetStats.ts | 3 +- src/near/config.ts | 4 +- src/pages/borrow.tsx | 38 ++++++++++------- src/pages/index.tsx | 9 ---- 7 files changed, 65 insertions(+), 77 deletions(-) diff --git a/src/components/CryptoInput/index.tsx b/src/components/CryptoInput/index.tsx index fc48207..dbbc4a2 100644 --- a/src/components/CryptoInput/index.tsx +++ b/src/components/CryptoInput/index.tsx @@ -35,7 +35,7 @@ export const CryptoInput: React.FC = ({ return ( <> - {showBalance && maxValue ? ( + {showBalance ? ( = ({ balance: {Number(maxValue || 0).toFixed(3)} -