Skip to content

Commit

Permalink
feat(amm): amm pool upgrade (#1966)
Browse files Browse the repository at this point in the history
* fix(mynt): add amm pool promotion

* feat(amm): new amm converter addresses

* fix(amm): change loot drop colors
  • Loading branch information
creed-victor authored Dec 21, 2021
1 parent fcbaaef commit 44604a4
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .env.mainnet.local
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ REACT_APP_TRANSAK_ENV=PRODUCTION

REACT_APP_GOOGLE_ANALYTICS=UA-192081564-2
REACT_APP_INFURA_KEY=12b606df88b3420aad7828acd0f11902

REACT_APP_BYPASS_MAINTENANCE=1
1 change: 1 addition & 0 deletions src/app/components/FinanceV2Components/LootDrop/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export enum LootDropColors {
Green = '#6DAC6F',
Pink = '#D69B9B',
Blue = '#8EDBDB',
Orange = '#db6e4d',
}

export const LootDropWrapper = styled.div`
Expand Down
11 changes: 11 additions & 0 deletions src/app/pages/LandingPage/components/Promotions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ export const Promotions: React.FC = () => {

<div className="tw-relative tw-mb-8">
<PromotionsCarousel>
<PromotionCard
appSection={AppSection.YieldFarm}
backgroundColor={PromotionColor.Orange}
title="15K SOV rewards"
duration="Ongoing weekly rewards"
text="Provide a 1:1 ratio of MYNT and rBTC to the MYNT/BTC AMM liquidity pool and instantly start accruing your share of 15,000 SOV rewards. Learn more"
learnMoreLink="https://www.sovryn.app/blog/sovryn-mynt-project-updates"
logoAsset1={Asset.MYNT}
logoAsset2={Asset.RBTC}
/>

<PromotionCard
appSection={AppSection.Lend}
backgroundColor={PromotionColor.Yellow}
Expand Down
3 changes: 3 additions & 0 deletions src/app/pages/LiquidityMining/components/MiningPool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export function MiningPool({
(pool.supplyAssets[0].asset === Asset.BNB &&
pool.supplyAssets[1].asset === Asset.RBTC &&
LootDropColors.Blue) ||
(pool.supplyAssets[0].asset === Asset.MYNT &&
pool.supplyAssets[1].asset === Asset.RBTC &&
LootDropColors.Orange) ||
undefined
}
/>
Expand Down
11 changes: 11 additions & 0 deletions src/app/pages/LiquidityMining/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ export function LiquidityMining() {
<Header />
<div className="tw-container tw-mt-12 tw-font-body">
<LootDropSectionWrapper>
<LootDrop
title="15k SOV"
asset1={Asset.MYNT}
asset2={Asset.RBTC}
message={t(translations.liquidityMining.recalibration, {
date,
})}
linkUrl="https://www.sovryn.app/blog/sovryn-mynt-project-updates"
linkText={t(translations.liquidityMining.lootDropLink)}
highlightColor={LootDropColors.Orange}
/>
<LootDrop
title="15k SOV"
asset1={Asset.BNB}
Expand Down
16 changes: 8 additions & 8 deletions src/utils/blockchain/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const contracts = {
// blockNumber: 1218721,
// },
MOC_amm: {
address: '0x60cc333072f16d5f4cb2bc36d6aa1f00381e22c2',
address: '0xe321442DC4793c17F41Fe3fB192a856A4864cEAF',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand All @@ -127,7 +127,7 @@ export const contracts = {
// blockNumber: 1406290,
// },
RIF_amm: {
address: '0xf6377dec9ce79b5bc0576618a5cd3e95f49f9ace',
address: '0x65528e06371635a338ca804cd65958a11cb11009',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand Down Expand Up @@ -157,7 +157,7 @@ export const contracts = {
blockNumber: 1406290,
},
XUSD_amm: {
address: '0x34163bb263ac77e9d6315676a2b9624cfc5ff861',
address: '0xa9c3d9681215ef7623dc28ea6b75bf87fdf285d9',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand Down Expand Up @@ -187,7 +187,7 @@ export const contracts = {
blockNumber: 1406290,
},
ETH_amm: {
address: '0xd8397c1944862b6a9674c85a5496c208dc9417bb',
address: '0xa57ec11497f45fe86eca50f4f1c9e75c8016a1af',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand All @@ -202,7 +202,7 @@ export const contracts = {
// blockNumber: 1406290,
// },
BNBS_amm: {
address: '0x150bc1f9f1020255d44385865928aadc6b7ad9f3',
address: '0x1684b871ec5f93de142e79a670b541d75be07ead',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand Down Expand Up @@ -280,7 +280,7 @@ export const contracts = {
blockNumber: 3100260,
},
SOV_amm: {
address: '0x88a67a0e79e311fe93c6e2101d55d6d2ae3a7e94',
address: '0xe76Ea314b32fCf641C6c57f14110c5Baa1e45ff4',
abi: LiquidityPoolV1Converter,
blockNumber: 1218833,
},
Expand Down Expand Up @@ -317,7 +317,7 @@ export const contracts = {
abi: FISHTokenAbi,
},
FISH_amm: {
address: '0x832769cc15dbdd6814819988c7a875ec2cb943e8',
address: '0xdeb0894196863dbb2f2d4c683f6d33a2197056b5',
abi: LiquidityPoolV1Converter,
},
FISH_staking: {
Expand Down Expand Up @@ -363,7 +363,7 @@ export const contracts = {
abi: MYNTMarketMakerAbi,
},
MYNT_amm: {
address: '0x25B8D024B39174824424f032423E03dd7dcCF044',
address: '0x3a18e61d9c9f1546dea013478dd653c793098f17',
abi: LiquidityPoolV1Converter,
},
};

0 comments on commit 44604a4

Please sign in to comment.