diff --git a/src/pages/LandingPage/LandingPage.tsx b/src/pages/LandingPage/LandingPage.tsx
index b5de266df..7d0796434 100755
--- a/src/pages/LandingPage/LandingPage.tsx
+++ b/src/pages/LandingPage/LandingPage.tsx
@@ -707,9 +707,11 @@ const LandingPage: React.FC = () => {
{socialicons.map((val, ind) => (
-
- {val.icon}
-
+
+
+ {val.icon}
+
+
))}
diff --git a/src/state/stake/hooks.ts b/src/state/stake/hooks.ts
index 01584c057..f0fa01e2c 100755
--- a/src/state/stake/hooks.ts
+++ b/src/state/stake/hooks.ts
@@ -12550,7 +12550,7 @@ export function useSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const getHypotheticalRewardRate = (
stakedAmount: TokenAmount,
totalStakedAmount: TokenAmount,
- // totalRewardRate: TokenAmount,
+ totalRewardRate: TokenAmount,
): TokenAmount => {
return new TokenAmount(
token,
@@ -12566,7 +12566,7 @@ export function useSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
- // totalRewardRate01,
+ totalRewardRate01,
);
const periodFinishMs = info[index].ending;
@@ -12757,7 +12757,7 @@ export function useOldSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const getHypotheticalRewardRate = (
stakedAmount: TokenAmount,
totalStakedAmount: TokenAmount,
- // totalRewardRate: TokenAmount,
+ totalRewardRate: TokenAmount,
): TokenAmount => {
return new TokenAmount(
token,
@@ -12773,7 +12773,7 @@ export function useOldSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
- // totalRewardRate01,
+ totalRewardRate01,
);
const periodFinishMs = info[index].ending;
@@ -13517,7 +13517,7 @@ export function useStakingInfo(pairToFilterBy?: Pair | null): StakingInfo[] {
const getHypotheticalRewardRate = (
stakedAmount: TokenAmount,
totalStakedAmount: TokenAmount,
- // totalRewardRate: TokenAmount,
+ totalRewardRate: TokenAmount,
): TokenAmount => {
return new TokenAmount(
uni,
@@ -13533,7 +13533,7 @@ export function useStakingInfo(pairToFilterBy?: Pair | null): StakingInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
- // totalRewardRate01,
+ totalRewardRate01,
);
const periodFinishMs = periodFinishState.result?.[0]
diff --git a/src/utils/index.ts b/src/utils/index.ts
index 6c0ede55e..8afcac06a 100755
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -717,14 +717,7 @@ export const getBulkPairData: (
}
};
-const parseData: (
- data: any,
- oneDayData: any,
- twoDayData: any,
- oneWeekData: any,
- ethPrice: any,
- oneDayBlock: any,
-) => any = (
+const parseData = (
data: any,
oneDayData: any,
twoDayData: any,
@@ -733,8 +726,9 @@ const parseData: (
oneDayBlock: any,
) => {
// get volume changes
+ console.log('ccc', data);
const [oneDayVolumeUSD, volumeChangeUSD] = get2DayPercentChange(
- data?.volumeUSD,
+ data?.volumeUSD ? data.volumeUSD : 0,
oneDayData?.volumeUSD ? oneDayData.volumeUSD : 0,
twoDayData?.volumeUSD ? twoDayData.volumeUSD : 0,
);