Skip to content

Commit

Permalink
Merge branch 'master' into disable-atoken-transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl authored Dec 3, 2024
2 parents 5326bf1 + 6605273 commit 93f8a2e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/i18n/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export const PoolAddLiquidityInformationCard = () => {
<Text fs={13} lh={16}>
{t("liquidity.add.modal.information.text")}
</Text>
<SLink href={`${DOC_LINK}/omnipool_impermanent_loss`} target="_blank">
<SLink
href={`${DOC_LINK}/products/trading/pools/learn_amm#impermanent-loss`}
target="_blank"
>
{t("liquidity.add.modal.information.linkText")}
</SLink>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/sections/staking/StakingPage.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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)
Expand Down

0 comments on commit 93f8a2e

Please sign in to comment.