From 26d51a1d46a51d19157fd709dd223ba0f1a1ae80 Mon Sep 17 00:00:00 2001 From: brightiron Date: Wed, 22 Nov 2023 14:58:20 -0600 Subject: [PATCH] cleanup debug --- src/views/Lending/Cooler/hooks/useGetCoolerBalance.tsx | 3 --- src/views/MyBalances/MyCoolerLoans.tsx | 2 +- src/views/MyBalances/index.tsx | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/views/Lending/Cooler/hooks/useGetCoolerBalance.tsx b/src/views/Lending/Cooler/hooks/useGetCoolerBalance.tsx index de8875c5e7..c47041f7dd 100644 --- a/src/views/Lending/Cooler/hooks/useGetCoolerBalance.tsx +++ b/src/views/Lending/Cooler/hooks/useGetCoolerBalance.tsx @@ -15,10 +15,7 @@ export const useGetCoolerBalance = ({ coolerAddress }: { coolerAddress?: string try { if (!coolerAddress) return new DecimalBigNumber("0", 18); const contract = IERC20__factory.connect(GOHM_ADDRESSES[networks.MAINNET], provider); - console.log("beforeBalanceOf"); const balance = await contract.balanceOf(coolerAddress); - console.log("balance", balance.toString()); - return new DecimalBigNumber(balance, 18); } catch { return new DecimalBigNumber("0", 18); diff --git a/src/views/MyBalances/MyCoolerLoans.tsx b/src/views/MyBalances/MyCoolerLoans.tsx index 8a67269572..4932993af9 100644 --- a/src/views/MyBalances/MyCoolerLoans.tsx +++ b/src/views/MyBalances/MyCoolerLoans.tsx @@ -91,7 +91,7 @@ export const MyCoolerLoans = ({ balance, balanceUSD }: { balance: string; balanc const daysLeft = Math.floor((expiryDate.getTime() - currentDate.getTime()) / (1000 * 3600 * 24)); const percentComplete = ((requestDays - daysLeft) / requestDays) * 100; return ( - + diff --git a/src/views/MyBalances/index.tsx b/src/views/MyBalances/index.tsx index 39e9c1f7f6..646efe0c2c 100644 --- a/src/views/MyBalances/index.tsx +++ b/src/views/MyBalances/index.tsx @@ -112,7 +112,6 @@ export const MyBalances: FC = () => { .filter(nonNullable) .reduce((res, bal) => res.add(bal), new DecimalBigNumber("0", 18)); - const formattedohmBalance = totalOhmBalance.toString({ decimals: 4, trim: false, format: true }); const formattedgOhmBalance = totalGohmBalance.toString({ decimals: 4, trim: false, format: true }); const gOhmPrice = ohmPrice * currentIndex.toApproxNumber(); const coolerBalance = totalCoolerBalance.toString({ decimals: 4, trim: false, format: true }); @@ -142,7 +141,6 @@ export const MyBalances: FC = () => { }, ]; - console.log(tokenArray, "tokenArray"); const walletTotalValueUSD = Object.values(tokenArray).reduce((totalValue, token) => totalValue + token.assetValue, 0); const myOhmBalancesTotalValueUSD = Object.values(myOhmBalances).reduce( (totalValue, token) => totalValue + token.assetValue,