Skip to content

chore: update copies for multiple chains #864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: releases/mainnet/v2.3.x
Choose a base branch
from

Conversation

evandrosaturnino
Copy link
Contributor

Chore: Update Copies for Multiple Chains

Description

This PR addresses user feedback regarding a confusing and Ethereum-centric user experience when minting tBTC from non-EVM chains like Sui and StarkNet. Previously, the interface used language and linked to contracts specific to Ethereum, even when a user had a Sui or StarkNet wallet connected. This created uncertainty and could lead users to abandon the process.

To resolve this, we've introduced a dynamic, chain-aware UI that adapts its language and links based on the user's connected chain, providing a more inclusive and clear experience for all users.

Changes Made

  • New Utility (src/utils/chainTextUtils.ts):

    • Created a centralized utility function, getChainDisplayInfo, to provide chain-specific copy for labels, tooltips, descriptions, and more. This avoids scattered conditional logic and keeps the copy in one manageable place.
  • Provide Data (src/pages/tBTC/Bridge/Minting/ProvideData.tsx):

    • The wallet address input now displays a dynamic placeholder and tooltip (e.g., "Sui Address" and a Sui-specific tooltip instead of "ETH Address").
  • Make Deposit (src/pages/tBTC/Bridge/Minting/MakeDeposit.tsx):

    • Replaced a hardcoded "ETH address" reference in the BTC Deposit Address tooltip with the dynamic name of the connected chain.
  • Initiate Minting (src/pages/tBTC/Bridge/Minting/InitiateMinting.tsx):

    • The main description of the minting process is now dynamic, providing accurate context and time estimates for Sui, StarkNet, and standard EVM chains.
  • Minting Timeline (src/pages/tBTC/Bridge/Minting/MintingTimeline.tsx):

    • Step 1: Now refers to a generic "Wallet Address" instead of "ETH address."
    • Step 3: Now instructs the user to sign a transaction in their specific wallet (e.g., "your Sui wallet") instead of a hardcoded "Ethereum transaction."

Copy link

1 similar comment
Copy link

Copy link

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.

1 participant