diff --git a/package.json b/package.json index 305093bcb..958a2cc34 100755 --- a/package.json +++ b/package.json @@ -106,6 +106,7 @@ "@paraswap/sdk": "^5.6.0-alpha.6", "@soulsolidity/soul-zap-trpc-client": "^1.0.0-beta.0", "@soulsolidity/soulzap-v1": "0.1.0", + "@spindl-xyz/embed-react": "^1.0.0", "@tanstack/react-query": "^4.32.0", "@trpc/client": "^10.45.2", "@trpc/react-query": "^10.45.2", diff --git a/src/components/HypeLabAds/HypeLabAds.tsx b/src/components/HypeLabAds/HypeLabAds.tsx index 4a7ca4008..c491cde0b 100644 --- a/src/components/HypeLabAds/HypeLabAds.tsx +++ b/src/components/HypeLabAds/HypeLabAds.tsx @@ -1,15 +1,29 @@ import React from 'react'; import { useMediaQuery, useTheme } from '@material-ui/core'; import { Banner } from '@hypelab/sdk-react'; +import { BannerEmbed } from '@spindl-xyz/embed-react'; +import { useActiveWeb3React } from 'hooks'; const HypeLabAds: React.FC = () => { + const { isActive } = useActiveWeb3React(); const { breakpoints } = useTheme(); const isMobile = useMediaQuery(breakpoints.down('xs')); return (
- {isMobile && } - {!isMobile && } + {isActive && ( + + )} + {!isActive && isMobile && } + {!isActive && !isMobile && }
); }; diff --git a/src/constants/index.ts b/src/constants/index.ts index b02350879..5d4e0e673 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -2356,6 +2356,7 @@ export const IchiVaults: { '0xb4eac29e630e38133e015ad17e3986886d5e8b35', '0xc0892aD9148b6A6520698BA0079E92242435bF7b', '0x24091dAe5CEBbb3ebb52A786716015B83FBe3fe5', + '0x4A14Af94ee033E1B51430f314C9B049672Ae9203', ], }; diff --git a/src/pages/PoolsPage/v3/SupplyLiquidityV3/containers/SelectRange/index.tsx b/src/pages/PoolsPage/v3/SupplyLiquidityV3/containers/SelectRange/index.tsx index eacf77266..26110c572 100644 --- a/src/pages/PoolsPage/v3/SupplyLiquidityV3/containers/SelectRange/index.tsx +++ b/src/pages/PoolsPage/v3/SupplyLiquidityV3/containers/SelectRange/index.tsx @@ -856,29 +856,6 @@ export function SelectRange({ )} - {defiedgeStrategyExists && ( - - { - onChangeLiquidityRangeType( - GlobalConst.v3LiquidityRangeType.DEFIEDGE_RANGE, - ); - }} - > -

Defiedge

- - {formatNumber(defiedgeStrategiesForPair[0]?.apr)}% - - {t('apr')} -
-
- )} {steerVaultExists && (