diff --git a/src/app/pages/LiquidityMining/index.tsx b/src/app/pages/LiquidityMining/index.tsx index bc9e8b517..63dab0e89 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 0a1a0c2fd..5c8d96046 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 5b9e41c37..a9e206c16 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 61354f136..7e623c4df 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 d5ba48e70..d6a1482bb 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', {