From f5a768c98f629b4db8188b9b9831ff5e80b5263c Mon Sep 17 00:00:00 2001 From: soulBit Date: Mon, 20 Mar 2023 11:11:50 +0000 Subject: [PATCH] Yield Farm Refactoring (#2507) * fix: PT_BR promo banners for SOV-2072 * feat: move DLLR AMM pool to start of lists --- src/app/components/Promotions/index.tsx | 28 ++++++++-------- src/app/pages/LiquidityMining/index.tsx | 43 ++++++++++++------------- src/locales/pt_br/translation.json | 15 ++++++--- src/utils/dictionaries/amm/mainnet.ts | 16 ++++----- src/utils/dictionaries/amm/testnet.ts | 16 ++++----- 5 files changed, 61 insertions(+), 57 deletions(-) diff --git a/src/app/components/Promotions/index.tsx b/src/app/components/Promotions/index.tsx index e363b2347e..2da1df2f30 100644 --- a/src/app/components/Promotions/index.tsx +++ b/src/app/components/Promotions/index.tsx @@ -38,15 +38,15 @@ export const Promotions: React.FC = ({ @@ -66,15 +66,15 @@ export const Promotions: React.FC = ({ /> diff --git a/src/app/pages/LiquidityMining/index.tsx b/src/app/pages/LiquidityMining/index.tsx index 39f8dff44e..2fd422087f 100644 --- a/src/app/pages/LiquidityMining/index.tsx +++ b/src/app/pages/LiquidityMining/index.tsx @@ -86,17 +86,17 @@ export function LiquidityMining() { /> */} + {/* */} - - diff --git a/src/locales/pt_br/translation.json b/src/locales/pt_br/translation.json index 11e8a1b75d..a97fbb4a86 100644 --- a/src/locales/pt_br/translation.json +++ b/src/locales/pt_br/translation.json @@ -2690,19 +2690,24 @@ "text": "Deposite qualquer quantia de XUSD neste pool de empréstimo e comece agora mesmo a acumular sua parte nos 2,500 SOVs." }, "card3": { - "title": "25K SOVs bônus", + "title": "15K SOVs bônus", "duration": "Toda semana", - "text": "Deposite XUSD e rBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 25,000 SOVs." + "text": "Deposite XUSD e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 15,000 SOVs." }, "card4": { - "title": "25K SOVs bônus", + "title": "15K SOVs bônus", "duration": "Toda semana", - "text": "Deposite SOV e rBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 25,000 SOVs." + "text": "Deposite SOV e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 15,000 SOVs." }, "card5": { "title": "5K SOVs bônus", "duration": "Toda semana", - "text": "Deposite ETH e rBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 5,000 SOVs." + "text": "Deposite ETH e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 5,000 SOVs." + }, + "card6": { + "title": "30K SOVs bônus", + "duration": "Toda semana", + "text": "Deposite DLLR e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 30,000 SOVs." } }, "liquidityMining": { diff --git a/src/utils/dictionaries/amm/mainnet.ts b/src/utils/dictionaries/amm/mainnet.ts index d1e8c73dd6..d6a5f0fb8c 100644 --- a/src/utils/dictionaries/amm/mainnet.ts +++ b/src/utils/dictionaries/amm/mainnet.ts @@ -4,6 +4,14 @@ import { Asset } from 'types/asset'; import { AmmLiquidityPool } from 'utils/models/amm-liquidity-pool'; export const mainnetAmm = [ + new AmmLiquidityPool( + Asset.DLLR, + Asset.RBTC, + 1, + AppMode.MAINNET, + '0xe81373285eb8cdee2e0108e98c5aa022948da9d2', + '0x3D5eDF3201876BF6935090C319FE3Ff36ED3D494', + ).setPromotionColor(PromotionColor.Orange), new AmmLiquidityPool( Asset.SOV, Asset.RBTC, @@ -17,14 +25,6 @@ export const mainnetAmm = [ '0x3fd679b01ddab34da8f72b7ec301aa75ea25f338', '0x88a67a0e79e311fe93c6e2101d55d6d2ae3a7e94', ]), - new AmmLiquidityPool( - Asset.DLLR, - Asset.RBTC, - 1, - AppMode.MAINNET, - '0xe81373285eb8cdee2e0108e98c5aa022948da9d2', - '0x3D5eDF3201876BF6935090C319FE3Ff36ED3D494', - ).setPromotionColor(PromotionColor.Orange), new AmmLiquidityPool( Asset.XUSD, Asset.RBTC, diff --git a/src/utils/dictionaries/amm/testnet.ts b/src/utils/dictionaries/amm/testnet.ts index 239b212afd..77a946b5bb 100644 --- a/src/utils/dictionaries/amm/testnet.ts +++ b/src/utils/dictionaries/amm/testnet.ts @@ -4,6 +4,14 @@ import { Asset } from 'types/asset'; import { AmmLiquidityPool } from 'utils/models/amm-liquidity-pool'; export const testnetAmm = [ + new AmmLiquidityPool( + Asset.DLLR, + Asset.RBTC, + 1, + AppMode.TESTNET, + '0x5fc0b3ac4683bd8af8e244e646d897a2c3f2a6ac', + '0x64B1aC8301f64c92721804ed78f2ee6025aaf7cE', + ).setPromotionColor(PromotionColor.Orange), new AmmLiquidityPool( Asset.SOV, Asset.RBTC, @@ -104,12 +112,4 @@ export const testnetAmm = [ '0x84953dAF0E7a9fFb8B4fDf7F948185e1cF85852e', '0xB12FA09a50c56e9a0C826b98e76DA7645017AB4D', ), - new AmmLiquidityPool( - Asset.DLLR, - Asset.RBTC, - 1, - AppMode.TESTNET, - '0x5fc0b3ac4683bd8af8e244e646d897a2c3f2a6ac', - '0x64B1aC8301f64c92721804ed78f2ee6025aaf7cE', - ).setPromotionColor(PromotionColor.Orange), ];