centrifuge / centrifuge-chain

Centrifuge Chain: the layer-1 blockchain for real-world assets, built on Substrate.
https://centrifuge.io
GNU Lesser General Public License v3.0
184 stars 81 forks source link

feat: Multi-variant `LocalAsset` #1984

Open mustermeiszer opened 3 months ago

mustermeiszer commented 3 months ago

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

How will this affect the code base

What are foreseen obstacles or hurdles to overcome?