From c6b97dcd3090df1b553062928a75b408c27fa609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Sim=C3=A3o?= Date: Sun, 20 Feb 2022 01:38:58 +0100 Subject: [PATCH] Added Borrow Page --- src/components/CryptoInput/index.tsx | 11 +- src/components/Navbar/index.tsx | 3 +- src/components/SwapInput/index.tsx | 31 +++- src/components/SwapInput/types.ts | 5 + src/grommetTheme.ts | 13 +- src/hooks/useGetStats.ts | 2 + src/pages/borrow.tsx | 217 +++++++++++++++++++++++++++ src/pages/index.tsx | 1 - src/pages/stake.tsx | 20 ++- src/pages/swap.tsx | 20 --- 10 files changed, 267 insertions(+), 56 deletions(-) create mode 100644 src/pages/borrow.tsx diff --git a/src/components/CryptoInput/index.tsx b/src/components/CryptoInput/index.tsx index 8b93bc3..c720933 100644 --- a/src/components/CryptoInput/index.tsx +++ b/src/components/CryptoInput/index.tsx @@ -45,17 +45,13 @@ export const CryptoInput: React.FC = ({ direction="row" margin="0 auto" > - + balance: {Number(maxValue || 0).toFixed(3)}