apps
apps copied to clipboard
Cross-chain Token Transfers: MVP
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
Sendbutton to tranche tokens (right now only have invest and redeem) - Adding a
Destinationdropdown 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 == CentrifugeChain→call tokens.transfer(..) - IF
destination == EVM Chain→ callliquidityPools.transferTrancheTokens(..) - IF
destination == Polkadot Parachain→ NOT POSSIBLE!
ON EVM Chains
- IF
destination == current EVM Chain→ callerc20.transfer(..) - IF
destination == CentrifugeChain || other EVM Chain→ callcentrifugeRouter.transferTrancheTokens(..)NOTE: For this, best to do this after 2331 is done, and useCentrifugeRouter.transferTrancheTokens. That way gas is also automatically paid.
@onnovisser what's the best way to QA this ticket?