From ccdd35253288f8a90be9ea3cb083f290c6beb69c Mon Sep 17 00:00:00 2001 From: soulBit Date: Mon, 17 Apr 2023 15:36:46 +0100 Subject: [PATCH] SOV-2250: update reward SOV promo amounts and recalibration date (#2521) feat: update reward SOV promo amounts and recalibration date --- src/app/pages/LiquidityMining/index.tsx | 4 ++-- src/locales/en/translation.json | 12 ++++++------ src/locales/pt/translation.json | 8 ++++---- src/locales/pt_br/translation.json | 12 ++++++------ src/utils/dateHelpers.ts | 9 +++++++-- 5 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/app/pages/LiquidityMining/index.tsx b/src/app/pages/LiquidityMining/index.tsx index bc9e8b517d..63dab0e893 100644 --- a/src/app/pages/LiquidityMining/index.tsx +++ b/src/app/pages/LiquidityMining/index.tsx @@ -19,7 +19,7 @@ import { useAccount } from '../../hooks/useAccount'; import { AmmPoolsBanner } from './components/AmmPoolsBanner'; import { HistoryTable } from './components/HistoryTable'; import { MiningPool } from './components/MiningPool'; -import { getNextMonday } from '../../../utils/dateHelpers'; +import { getNextDay } from '../../../utils/dateHelpers'; import { useHistory, useLocation } from 'react-router-dom'; import { AppSection, @@ -32,7 +32,7 @@ import { getAmmHistory } from 'app/components/Promotions/components/PromotionCar const pools = LiquidityPoolDictionary.list(); -const date = getNextMonday(); +const date = getNextDay(2); export function LiquidityMining() { const { t } = useTranslation(); diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 0a1a0c2fd3..5c8d96046c 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -2720,14 +2720,14 @@ "text": "Provide any amount of XUSD to the XUSD lending pool and instantly start accruing your share of 2,500 SOV rewards." }, "card3": { - "title": "7.5K SOV weekly rewards", + "title": "5K SOV weekly rewards", "duration": "Ongoing weekly rewards", - "text": "Provide a 1:1 ratio of XUSD and RBTC to the XUSD/RBTC AMM liquidity pool and instantly start accruing your share of 7,500 SOV rewards." + "text": "Provide a 1:1 ratio of XUSD and RBTC to the XUSD/RBTC AMM liquidity pool and instantly start accruing your share of 5000 SOV rewards." }, "card4": { - "title": "12K SOV weekly rewards", + "title": "10K SOV weekly rewards", "duration": "Ongoing weekly rewards", - "text": "Provide a 1:1 ratio of SOV and RBTC to the SOV/RBTC AMM liquidity pool and instantly start accruing your share of 12,000 SOV rewards." + "text": "Provide a 1:1 ratio of SOV and RBTC to the SOV/RBTC AMM liquidity pool and instantly start accruing your share of 10,000 SOV rewards." }, "card5": { "title": "5K SOV weekly rewards", @@ -2735,9 +2735,9 @@ "text": "Provide a 1:1 ratio of ETH and RBTC to the ETH/RBTC AMM liquidity pool and instantly start accruing your share of 5,000 SOV rewards." }, "card6": { - "title": "30K SOV weekly rewards", + "title": "20K SOV weekly rewards", "duration": "Ongoing weekly rewards", - "text": "Provide a 1:1 ratio of DLLR and RBTC to the DLLR/RBTC AMM liquidity pool and instantly start accruing your share of 30,000 SOV rewards." + "text": "Provide a 1:1 ratio of DLLR and RBTC to the DLLR/RBTC AMM liquidity pool and instantly start accruing your share of 20,000 SOV rewards." }, "apy": "{{apy}}% current APY" }, diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json index 5b9e41c376..a9e206c16a 100644 --- a/src/locales/pt/translation.json +++ b/src/locales/pt/translation.json @@ -2308,14 +2308,14 @@ "text": "Deposite qualquer quantia de XUSD neste pool de empréstimo e comece agora mesmo a acumular o sua parte nos 2,500 SOVs." }, "card3": { - "title": "7.5K SOVs bônus", + "title": "5K SOVs bônus", "duration": "Toda semana", - "text": "Deposite XUSD e rBTC neste pool de liquidez e comece agora mesmo a acumular a sua parte nos 7,500 SOVs." + "text": "Deposite XUSD e rBTC neste pool de liquidez e comece agora mesmo a acumular a sua parte nos 5,000 SOVs." }, "card4": { - "title": "12K SOVs bônus", + "title": "10K SOVs bônus", "duration": "Toda semana", - "text": "Deposite SOV e rBTC neste pool de liquidez e comece agora mesmo a acumular a sua parte nos 12,000 SOVs." + "text": "Deposite SOV e rBTC neste pool de liquidez e comece agora mesmo a acumular a sua parte nos 10,000 SOVs." }, "card5": { "title": "5K SOVs bônus", diff --git a/src/locales/pt_br/translation.json b/src/locales/pt_br/translation.json index 61354f1369..7e623c4df0 100644 --- a/src/locales/pt_br/translation.json +++ b/src/locales/pt_br/translation.json @@ -2644,14 +2644,14 @@ "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": "7.5K SOVs bônus", + "title": "5K SOVs bônus", "duration": "Toda semana", - "text": "Deposite XUSD e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 7,500 SOVs." + "text": "Deposite XUSD e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 5,000 SOVs." }, "card4": { - "title": "12K SOVs bônus", + "title": "10K SOVs bônus", "duration": "Toda semana", - "text": "Deposite SOV e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 12,000 SOVs." + "text": "Deposite SOV e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 10,000 SOVs." }, "card5": { "title": "5K SOVs bônus", @@ -2659,9 +2659,9 @@ "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", + "title": "20K 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." + "text": "Deposite DLLR e RBTC neste pool de liquidez e comece agora mesmo a acumular sua parte nos 20,000 SOVs." } }, "liquidityMining": { diff --git a/src/utils/dateHelpers.ts b/src/utils/dateHelpers.ts index d5ba48e704..d6a1482bba 100644 --- a/src/utils/dateHelpers.ts +++ b/src/utils/dateHelpers.ts @@ -1,7 +1,12 @@ import dayjs from 'dayjs'; -export const getNextMonday = () => - dayjs().utc().startOf('week').add(1, 'week').day(1).format('MMMM D'); +export const getNextDay = (day: number) => { + if (day < 1 || day > 7) { + throw new Error('Invalid day, must be integer in range 1-7'); + } + + return dayjs().utc().startOf('week').add(1, 'week').day(day).format('MMMM D'); +}; export const timestampToDateTimeString = (timestamp: number) => new Date(timestamp * 1000).toLocaleString('en-GB', {