Skip to content
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

feat: Multi-variant LocalAsset #1984

Open
mustermeiszer opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1985
Open

feat: Multi-variant LocalAsset #1984

mustermeiszer opened this issue Aug 29, 2024 · 0 comments · May be fixed by #1985
Labels
I8-enhancement An additional feature.

Comments

@mustermeiszer
Copy link
Collaborator

Description

The system already provides a way to amalgamate the same tokens from different chains - e.g., USDC from Ethereum and USDC from Base can be instantly swapped into localUSDC. Issuers can use localUsdc as their pool currency, opening the pool for both variants. We want to extend this behavior. Creating more localXXX versions, allows issuers to accept a more diverse set of tokens - e.g. a localUsdcDai token would allow the use of both Dai and all USDC variants for a pool.

This means that localUsdcDai tokens could be swapped into both Dai and Usdc tokens, while localUsdc tokens could only be swapped into Usdc tokens.

Research/based on

  • Needs of issuers to not swap USDC <> DAI or other tokens

How will this affect the code base

  • Increase complexity on the pallet-token-mux side due to decimal differences

What are foreseen obstacles or hurdles to overcome?

  • Prevent creation of dust due to rounding
@mustermeiszer mustermeiszer added the I8-enhancement An additional feature. label Aug 29, 2024
@mustermeiszer mustermeiszer linked a pull request Aug 29, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I8-enhancement An additional feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant