Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

UI to convert native tokens to wrapped tokens for ERC20 transfers #194

Open
canhtrinh opened this issue Mar 17, 2022 · 0 comments
Open

UI to convert native tokens to wrapped tokens for ERC20 transfers #194

canhtrinh opened this issue Mar 17, 2022 · 0 comments

Comments

@canhtrinh
Copy link
Collaborator

Description/Reasoning

For circumstances where users are transferring ERC20 tokens where the source chain is that ERC20 token's native chain, the UI should:

  • accept/detect native currency on that chain
  • invoke the right smart contract to convert that native currency into wrapped assets
  • deposit that wrapped asset into the one-time deposit address

Example:

  • User wants to send WAVAX from Avalanche to Ethereum. We should detect native AVAX, convert it, then deposit it.

Counter-example:

  • User wants to send Axelar-wrapped WAVAX from Ethereum back to Avalanche. We should just tell the user they need to source Axelar-wrapped WAVAX on ethereum, comparable to what we currently do for our other supported assets (e.g. Axelar-wrapped UST on Ethereumm, etc).

Current Behaviour

Expected Behaviour

Steps to reproduce (for bugs)

Relevant Logs or Files

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant