Skip to content

Conversation

@xhiroz
Copy link
Contributor

@xhiroz xhiroz commented Oct 31, 2025

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 31, 2025

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: d7063da
Status: ✅  Deploy successful!
Preview URL: https://3596481d.gmx-interface.pages.dev
Branch Preview URL: https://text-changes.gmx-interface.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 31, 2025

Deploying gmx-interface-home with  Cloudflare Pages  Cloudflare Pages

Latest commit: d7063da
Status: ✅  Deploy successful!
Preview URL: https://48c5587c.gmx-interface-home.pages.dev
Branch Preview URL: https://text-changes.gmx-interface-home.pages.dev

View logs

title={t`Rank`}
width={6}
tooltip={
<Trans values={{ minCollateral: formatUsd(MIN_COLLATERAL_USD_IN_LEADERBOARD, { displayDecimals: 0 }) }}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 problems:

  • we do not use such value substitution in our code
  • eslint will raise error here, because component for value created each render

to resolve it just use value directly in position of {{ minCollateral }}

example in our codebase:

disabledMessage={<Trans>Select a pool containing {tokenData.symbol} to use it as collateral.</Trans>}

title={t`Rank`}
width={6}
tooltip={
<Trans values={{ minCollateral: formatUsd(MIN_COLLATERAL_USD_IN_LEADERBOARD, { displayDecimals: 0 }) }}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue with value substitution

The actual execution price may differ from the set limit price due to fees and price impact. This
ensures that you receive at least the minimum receive amount.
The execution price may differ from the set limit price due to fees and price impact. This
ensures that you receive at least the minimum receive amount. <a href="https://docs.gmx.io/docs/trading/v2/#limit-orders">Read more</a>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better is use ExternalLink component with newTab prop (to open in new window) and then verify how it looks

collateralTokenPriceMax,
initialCollateralToken,
totalImpactUsd,
totalImpactUsd = 0n,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure in this change? not expected to see it text changes and translations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release-87...master

r87 vs master change, not mine. i will change target to r88 once created

@xhiroz xhiroz changed the base branch from release-87 to release-88 October 31, 2025 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants