Skip to content

Commit

Permalink
update social link on landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Dec 3, 2021
1 parent 4e167f8 commit b6deb26
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
8 changes: 5 additions & 3 deletions src/pages/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,11 @@ const LandingPage: React.FC = () => {
</Box>
<Box className={classes.smallCommunityContainer}>
{socialicons.map((val, ind) => (
<Box display='flex' mx={1.5} key={ind}>
{val.icon}
</Box>
<a href={val.link} target='_blank' key={ind} rel='noreferrer'>
<Box display='flex' mx={1.5}>
{val.icon}
</Box>
</a>
))}
</Box>
<Box mt={2}>
Expand Down
12 changes: 6 additions & 6 deletions src/state/stake/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -12566,7 +12566,7 @@ export function useSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
// totalRewardRate01,
totalRewardRate01,
);

const periodFinishMs = info[index].ending;
Expand Down Expand Up @@ -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,
Expand All @@ -12773,7 +12773,7 @@ export function useOldSyrupInfo(tokenToFilterBy?: Token | null): SyrupInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
// totalRewardRate01,
totalRewardRate01,
);

const periodFinishMs = info[index].ending;
Expand Down Expand Up @@ -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,
Expand All @@ -13533,7 +13533,7 @@ export function useStakingInfo(pairToFilterBy?: Pair | null): StakingInfo[] {
const individualRewardRate = getHypotheticalRewardRate(
stakedAmount,
totalStakedAmount,
// totalRewardRate01,
totalRewardRate01,
);

const periodFinishMs = periodFinishState.result?.[0]
Expand Down
12 changes: 3 additions & 9 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
);
Expand Down

0 comments on commit b6deb26

Please sign in to comment.