Open mustermeiszer opened 2 months ago
Best would be to bring in this full ticket so that users see where their funds lie that they can control.
Testing
Testing this will be very hard, as all test networks do not have an actual AH atm... Easiest should be to start a new AH parachain in our dev cluster and use that one.
To ease the lives of investors from Asset Hub (AH) we can provide a way to invest/redeem from these chains without the need to switch to Centrifuge Chain.
Monitoring the success of the calls on Centrifuge can be done by linking from the
XCM Hash
to the associated subscan page here. Note that we need one link per XCM message sent.Investing
Connected and executed call from AH
Invest
This assumes that either
PoolCurrency
or a currency that can beswapped
viapallet-token-mux
is held on AH by the user.Example:
polkadotXcm.limitedReserveTransferAsset
for transferring1 USDC
fromAH
toCentrifuge
:0x1f0803010100bd1f03000101008e450add99cf9e298985188545fb317153aa44cbf3fed49c9a5fa786689700080304000002043205e5140002093d000000000000
NOTE: Decodable onAH
INVEST_TRANSACT
for investing` *NOTE: Decodable on
Centrifuge`*Cancel Invest
Collecting Investments
Redeeming
Connected and executed call from AH
Redeem
Cancel Redeem
Collecting Redemptions
Portfolio
It is mandatory, that the UI checks for the holdings of the derived account on Centrifuge chain and displays them too in the portfolio overview.
Derived Account
runtimeApi.AccountConversionApi.conversion_of(..)
to retrieve theDerivedACcount
AccountId-X
on asset hub the input is:Location {parents: 1, junction: [Parachain(1,000), AccountId32(AccountId-X)]}