Skip to content

Commit

Permalink
feat: update XUSD lend pool rewards (#2405)
Browse files Browse the repository at this point in the history
* feat: update XUSD lend pool rewards

* SOV-428 force redeploy

* chore: cleanup unused promos

Co-authored-by: Victor Creed <[email protected]>
  • Loading branch information
soulBit and creed-victor authored Sep 5, 2022
1 parent df0a46b commit adf2c30
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 75 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
## Licence

The Sovryn DApp is open-sourced software licensed under the [MIT license](LICENSE).

43 changes: 1 addition & 42 deletions src/app/components/Promotions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
import { translations } from 'locales/i18n';
import { LiquidityPoolDictionary } from 'utils/dictionaries/liquidity-pool-dictionary';
import styles from './index.module.scss';
import { learnMoreLending, learnMoreYieldFarming } from 'utils/classifiers';
import { learnMoreYieldFarming } from 'utils/classifiers';

type PromotionsProps = {
className?: string;
Expand Down Expand Up @@ -36,33 +36,6 @@ export const Promotions: React.FC<PromotionsProps> = ({

<div className="tw-relative tw-mb-8 tw-mt-3">
<PromotionsCarousel className="tw-w-full">
{/* <PromotionCard
appSection={AppSection.YieldFarm}
backgroundColor={PromotionColor.Orange}
title={t(translations.promotions.card1.title)}
duration={t(translations.promotions.card1.duration)}
text={t(translations.promotions.card1.text)}
learnMoreLink={learnMoreYieldFarming}
logoAsset1={Asset.MYNT}
logoAsset2={Asset.RBTC}
linkAsset={LiquidityPoolDictionary.get(Asset.MYNT, Asset.RBTC)?.key}
linkDataActionId={`landing-promo-learnmore-${Asset.MYNT}`}
className={cardClassName}
imageClassName={cardImageClassName}
/> */}
<PromotionCard
appSection={AppSection.Lend}
backgroundColor={PromotionColor.Yellow}
title={t(translations.promotions.card2.title)}
duration={t(translations.promotions.card2.duration)}
text={t(translations.promotions.card2.text)}
linkAsset={Asset.XUSD}
learnMoreLink={learnMoreLending}
logoAsset1={Asset.XUSD}
linkDataActionId={`landing-lend-promo-learnmore-${Asset.XUSD}`}
className={cardClassName}
imageClassName={cardImageClassName}
/>
<PromotionCard
appSection={AppSection.YieldFarm}
backgroundColor={PromotionColor.Yellow}
Expand Down Expand Up @@ -91,20 +64,6 @@ export const Promotions: React.FC<PromotionsProps> = ({
className={cardClassName}
imageClassName={cardImageClassName}
/>
{/* <PromotionCard
appSection={AppSection.YieldFarm}
backgroundColor={PromotionColor.Green}
title={t(translations.promotions.card5.title)}
duration={t(translations.promotions.card5.duration)}
text={t(translations.promotions.card5.text)}
learnMoreLink={learnMoreYieldFarming}
logoAsset1={Asset.ETH}
logoAsset2={Asset.RBTC}
linkAsset={LiquidityPoolDictionary.get(Asset.ETH, Asset.RBTC)?.key}
linkDataActionId={`landing-promo-learnmore-${Asset.ETH}`}
className={cardClassName}
imageClassName={cardImageClassName}
/> */}
</PromotionsCarousel>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@ import LeftSection from './LeftSection';
import { ActionButton } from 'app/components/Form/ActionButton';
import { Asset } from 'types';
import { Tooltip } from '@blueprintjs/core';
import {
IPromotionLinkState,
PromotionColor,
} from 'app/components/Promotions/components/PromotionCard/types';
import { IPromotionLinkState } from 'app/components/Promotions/components/PromotionCard/types';
import { useHistory, useLocation } from 'react-router-dom';
import { DialogType } from '../../types';

Expand Down Expand Up @@ -140,7 +137,7 @@ const CurrencyRow: React.FC<ICurrencyRowProps> = ({
onNonEmptyBalance={onNonEmptyBalance}
/>
}
leftColor={asset === Asset.XUSD ? PromotionColor.Yellow : undefined}
leftColor={undefined}
chartReady={true}
/>

Expand Down
29 changes: 1 addition & 28 deletions src/app/pages/LendingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@ import React from 'react';
import { Helmet } from 'react-helmet-async';
import { useTranslation } from 'react-i18next';
import { translations } from 'locales/i18n';
import { Asset } from 'types';
import { SkeletonRow } from '../../components/Skeleton/SkeletonRow';
import { useAccount } from '../../hooks/useAccount';
import CurrencyContainer from './components/CurrencyContainer';
import { HistoryTable } from './components/HistoryTable';
import { getNextMonday } from '../../../utils/dateHelpers';
import { PromotionCard } from 'app/components/Promotions/components/PromotionCard';
import {
AppSection,
PromotionColor,
} from 'app/components/Promotions/components/PromotionCard/types';
import { learnMoreLending } from 'utils/classifiers';

const date = getNextMonday();

const LendingPage: React.FC = () => {
const { t } = useTranslation();
Expand All @@ -31,26 +21,9 @@ const LendingPage: React.FC = () => {
/>
</Helmet>
<div className="tw-max-w-screen-2xl tw-mx-auto tw-container 2xl:tw-px-0 tw-w-full">
<PromotionCard
appSection={AppSection.Lend}
backgroundColor={PromotionColor.Yellow}
title={t(translations.promotions.card2.title)}
text={t(translations.promotions.card2.text)}
duration={t(translations.liquidityMining.recalibration, {
date,
})}
linkAsset={Asset.XUSD}
learnMoreLink={learnMoreLending}
logoAsset1={Asset.XUSD}
linkDataActionId={`lend-promo-learnmore-${Asset.XUSD}`}
className="tw-mt-3"
imageClassName="tw-transform tw-scale-85"
/>

<div className={'tw-max-w-screen-2xl tw-mx-auto tw-mt-5'}>
<div className="tw-max-w-screen-2xl tw-mx-auto tw-mt-11">
<CurrencyContainer />
</div>

<div className="tw-mt-12">
<div className="tw-px-3 tw-text-lg">
{t(translations.lendingPage.historyTable.title)}
Expand Down

0 comments on commit adf2c30

Please sign in to comment.