Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dragon eggs #1615

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/components/Swap/SwapBestTrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import {
paraswapTaxBuy,
RouterTypes,
SmartRouter,
DRAGON_EGGS_SHOW,
} from 'constants/index';
import { useQuery } from '@tanstack/react-query';
import { useAllTokens, useCurrency } from 'hooks/Tokens';
Expand Down Expand Up @@ -1513,7 +1514,8 @@ const SwapBestTrade: React.FC<{
console.log('sub');
}}
/>
<Eggs type={2}></Eggs>
{DRAGON_EGGS_SHOW && <Eggs type={2}></Eggs>}

{isLiquidityHubOnly && <PoweredByOrbs />}
</Box>
);
Expand Down
2 changes: 2 additions & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export const CEX_BILL_ADDRESS = '0x6D7637683eaD28F775F56506602191fdE417fF60';

export const AVERAGE_L1_BLOCK_TIME = 12000;

export const DRAGON_EGGS_SHOW = false;

export const merklAMMs: { [chainId in ChainId]?: string[] } = {
[ChainId.MATIC]: ['quickswapalgebra'],
[ChainId.ZKEVM]: ['quickswapalgebra', 'quickswapuni'],
Expand Down
3 changes: 2 additions & 1 deletion src/pages/AnalyticsPage/AnalyticsOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
useAnalyticsTopTokens,
} from 'hooks/useFetchAnalyticsData';
import { LiquidityHubAnalytics } from 'components';
import { DRAGON_EGGS_SHOW } from 'constants/index';

dayjs.extend(utc);

Expand Down Expand Up @@ -92,7 +93,7 @@ const AnalyticsOverview: React.FC = () => {
right: 0,
}}
>
<Eggs type={4}></Eggs>
{DRAGON_EGGS_SHOW && <Eggs type={4}></Eggs>}
</Box>
</Box>
</Box>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/DragonPage/DragonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useNewLairInfo } from 'state/stake/hooks';
import { ChainId } from '@uniswap/sdk';
import { useHistory } from 'react-router-dom';
import { DLDQUICK, DLQUICK } from 'constants/v3/addresses';
import { DRAGON_EGGS_SHOW } from 'constants/index';
import DragonsInfo from 'pages/DragonPage/DragonsInfo';
import APRHover from 'assets/images/aprHover.png';
import BurnImage from 'assets/images/fire.png';
Expand Down Expand Up @@ -228,7 +229,7 @@ const DragonPage: React.FC = () => {
right: 0,
}}
>
<Eggs type={1}></Eggs>
{DRAGON_EGGS_SHOW && <Eggs type={1}></Eggs>}
</Box>
</Grid>
<Grid container spacing={4} style={{ marginTop: '24px' }}>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/PoolsPage/v3/MyLiquidityPoolsV3/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from '@material-ui/core';
import { useActiveWeb3React, useV2LiquidityPools } from 'hooks';
import { useTranslation } from 'react-i18next';
import { getConfig } from 'config/index';
import { GlobalConst } from 'constants/index';
import { GlobalConst, DRAGON_EGGS_SHOW } from 'constants/index';
import CustomTabSwitch from 'components/v3/CustomTabSwitch';
import { Eggs } from 'components';

Expand Down Expand Up @@ -242,7 +242,7 @@ export default function MyLiquidityPoolsV3() {
top: '-80px',
}}
>
<Eggs type={3}></Eggs>
{DRAGON_EGGS_SHOW && <Eggs type={3}></Eggs>}
</Box>

{allV2PairsWithLiquidity.length > 0 && isMigrateAvailable && (
Expand Down
7 changes: 4 additions & 3 deletions src/pages/styles/dragon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@
left: 0px;
opacity: 0.3;
cursor: pointer;
background-image: url('../../assets/images/DragonBgNew.png');
}

.dragonHeader:hover:before{
.dragonHeader:hover:before {
opacity: 1;
animation: fadeOut 1s linear;
}

@keyframes fadeIn{
@keyframes fadeIn {
0% {
opacity: 0;
}
Expand All @@ -58,7 +59,7 @@
}
}

@keyframes fadeOut{
@keyframes fadeOut {
100% {
opacity: 1;
}
Expand Down
Loading