apps icon indicating copy to clipboard operation
apps copied to clipboard

Cross-chain Token Transfers: MVP

Open sonam-jo opened this issue 1 year ago • 1 comments

MVP Goals

Allow users to send tranche tokens

  • from Centrifuge to other EVM chains
  • from other EVM chains to Centrifuge

UI Changes

On the Portfolio tab

  • Adding a Send button to tranche tokens (right now only have invest and redeem)
  • Adding a Destination dropdown of which chain to pick (including what the user is on already) for tranche tokens sending actions
  • ONLY display holdings from the network a user is connected to

Technical implementation

ON Centrifuge Chain

  • IF destination == CentrifugeChaincall tokens.transfer(..)
  • IF destination == EVM Chain → call liquidityPools.transferTrancheTokens(..)
  • IF destination == Polkadot Parachain → NOT POSSIBLE!

ON EVM Chains

  • IF destination == current EVM Chain → call erc20.transfer(..)
  • IF destination == CentrifugeChain || other EVM Chain → call centrifugeRouter.transferTrancheTokens(..) NOTE: For this, best to do this after 2331 is done, and use CentrifugeRouter.transferTrancheTokens. That way gas is also automatically paid.

sonam-jo avatar Aug 27 '24 13:08 sonam-jo

@onnovisser what's the best way to QA this ticket?

0x4Graham avatar Jan 20 '25 08:01 0x4Graham