From 37c9408a5db727935cf5fc4b95870c3d339b3b5b Mon Sep 17 00:00:00 2001 From: vkulinich Date: Tue, 3 Dec 2024 14:32:22 +0100 Subject: [PATCH] Push external PRs --- src/i18n/locales/en/translations.json | 2 +- .../pools/modals/AddLiquidity/AddLiquidityInfoCard.tsx | 5 ++++- src/sections/staking/StakingPage.utils.ts | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/i18n/locales/en/translations.json b/src/i18n/locales/en/translations.json index 153934dc8..5c6b83549 100644 --- a/src/i18n/locales/en/translations.json +++ b/src/i18n/locales/en/translations.json @@ -844,7 +844,7 @@ "staking.dashboard.rewards.legend.current": "Current rewards", "staking.dashboard.rewards.legend.future": "Rewards after voting", "staking.dashboard.rewards.legend.tooltip": "You have to vote max conviction with whole staking position", - "staking.dashboard.graph.axisY": "Paylable Percentage", + "staking.dashboard.graph.axisY": "Payable Percentage", "staking.dashboard.graph.axisX": "Days", "staking.dashboard.rewards.button": "Claim", "staking.dashboard.stats.chart.label": "Staked HDX", diff --git a/src/sections/pools/modals/AddLiquidity/AddLiquidityInfoCard.tsx b/src/sections/pools/modals/AddLiquidity/AddLiquidityInfoCard.tsx index fb9f8f27f..b0580dc53 100644 --- a/src/sections/pools/modals/AddLiquidity/AddLiquidityInfoCard.tsx +++ b/src/sections/pools/modals/AddLiquidity/AddLiquidityInfoCard.tsx @@ -13,7 +13,10 @@ export const PoolAddLiquidityInformationCard = () => { {t("liquidity.add.modal.information.text")} - + {t("liquidity.add.modal.information.linkText")} diff --git a/src/sections/staking/StakingPage.utils.ts b/src/sections/staking/StakingPage.utils.ts index 9b8cbdfaa..3678de517 100644 --- a/src/sections/staking/StakingPage.utils.ts +++ b/src/sections/staking/StakingPage.utils.ts @@ -543,9 +543,9 @@ export const useClaimReward = () => { stakePosition.accumulatedSlashPoints.toString(), ) - const extraPaylablePercentage = wasm.sigmoid(extraPoints, a, b) + const extraPayablePercentage = wasm.sigmoid(extraPoints, a, b) - extraPayablePercentageHuman = scaleHuman(extraPaylablePercentage, "q") + extraPayablePercentageHuman = scaleHuman(extraPayablePercentage, "q") .multipliedBy(100) .toString() } @@ -571,7 +571,7 @@ export const useClaimReward = () => { BN(payablePercentageHuman).gte(chartPoints.y) && (arr[i + 1] ? BN(payablePercentageHuman).lt(arr[i + 1].y) : true) - //calculate paylable percentage if vote ongoing referendas + // calculate payable percentage if vote ongoing referendas const currentSecondary = extraPayablePercentageHuman ? BN(extraPayablePercentageHuman).gte(chartPoints.y) && (arr[i + 1] ? BN(extraPayablePercentageHuman).lt(arr[i + 1].y) : true)