Skip to content

Commit

Permalink
SOV-2250: update reward SOV promo amounts and recalibration date (#2521)
Browse files Browse the repository at this point in the history
feat: update reward SOV promo amounts and recalibration date
  • Loading branch information
soulBit authored Apr 17, 2023
1 parent 2426cdb commit ccdd352
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/LiquidityMining/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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();
Expand Down
12 changes: 6 additions & 6 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2720,24 +2720,24 @@
"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",
"duration": "Ongoing weekly rewards",
"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"
},
Expand Down
8 changes: 4 additions & 4 deletions src/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions src/locales/pt_br/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2644,24 +2644,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": "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",
"duration": "Toda semana",
"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": {
Expand Down
9 changes: 7 additions & 2 deletions src/utils/dateHelpers.ts
Original file line number Diff line number Diff line change
@@ -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', {
Expand Down

0 comments on commit ccdd352

Please sign in to comment.