From 55c6fce510021f9a8243fb8d58fda37f7b2c12b2 Mon Sep 17 00:00:00 2001 From: lilchizh Date: Wed, 9 Nov 2022 08:19:00 +0300 Subject: [PATCH] temporaly rm tvl --- src/components/FarmingEventCard/index.tsx | 26 ++++++++++++----------- src/hooks/useFarmingSubgraph.ts | 6 +++--- src/pages/EternalFarmsPage/index.tsx | 8 +++---- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/FarmingEventCard/index.tsx b/src/components/FarmingEventCard/index.tsx index c953282..eec6f05 100644 --- a/src/components/FarmingEventCard/index.tsx +++ b/src/components/FarmingEventCard/index.tsx @@ -84,7 +84,7 @@ export function FarmingEventCard({ const rewardList = useMemo(() => { if (!eternal && (!reward || !bonusReward)) return; - if (eternal && (!dailyRewardRate && !dailyBonusRewardRate)) return; + if (eternal && !dailyRewardRate && !dailyBonusRewardRate) return; if (rewardToken.id === bonusRewardToken.id) { return [{ token: rewardToken, rewardRate: (dailyRewardRate || 0) + (dailyBonusRewardRate || 0), amount: formatUnits(BigNumber.from(reward).add(BigNumber.from(bonusReward)), 18) }]; @@ -238,15 +238,17 @@ export function FarmingEventCard({ REWARDS {!eternal && ( @@ -303,10 +305,10 @@ export function FarmingEventCard({ )} {account && !active ? ( <> -
+ {/*
TVL : {formatDollarAmount(tvl)} -
+
*/}