[Proposal: 62] Move 15% of Moonriver's Sovereign Account on Kusama to AH-Kusama

Abstract

Now that AH-Kusama is a reserve of KSM from Moonriver, this means you can send/receive KSM and xcKSM from AH-Kusama and Moonriver (without having to go through the Kusama Relay chain).

Nevertheless, you need liquidity in Moonriver’s Sovereign Account in AH-Kusama to “pay up” the xcKSM withdrawals.

This proposal moves 15% of the KSM existing in Moonriver’s Sovereign account from Kusama to AH-Kusama.

Details

Reserve XCM transfers are similar to bank deposits and withdrawals. When you want to bring your KSM to Moonriver, you can go to a Moonriver bank in Kusama and make the deposit there. Next, Moonriver issues an xcKSM in Moonriver Country.

Now, Moonriver has opened a new branch in AH-Kusama Country that takes KSMs, but it needs liquidity to pay customers who are withdrawing their xcKSM there.

The proposal is comprised of an XCM Message executed in Kusama. When enacted, the XCM transfers 15% of the KSM (at the time the code was written, it can be more or less when the proposal executes) to Moonriver’s Sovereign account in AH-Kusama.

The proposal was tested by another engineer and verified with Chopsticks to ensure its correctness.

Calldata:
0x6b030401000000018080778c30c20fa2ebc0ed18d2cbca1f0100e40b54020000000000000000000000fc630b04000100a10f04000101007369626ce707000000000000000000000000000000000000000000000000000004040000000fbd14c729d07f1600000000000102286bee02d00700010001
Preimage:
0x2164eea03c087c5eb225e0aa97fa31eaaabda622002ff4d9b113080df6234344

Execution in Moonriver:

Execution in Kusama:

Execution in AH-Kusama:

Let me know if there are any questions :smiley:

5 Likes

Hey there :slight_smile:

I’m Agustin, member of Moonbeam’s core dev team.

I’m the engineer who helped Alberto verifying the proposal’s correctness. I tested it via Chopsticks and can confirm it works properly!

4 Likes

hey @AlbertoV19 @Agusrodri, thanks for the proposal and for testing it out!

I’m trying to better understand the primary use case. If this proposal passes, it will allow XCM transfers of KSM between Moonriver and AH-Kusama, so users won’t need to teleport KSM from the Kusama Relay chain to perform XCM transfers between AH-Kusama and Moonriver.

however, it seems like there aren’t many assets on Kusama AH that can be XCMed to Moonriver atm - especially since Tether has sunsetted USDT support on Kusama. so, I’m thinking this might be something to test on Moonriver before rolling it out on Moonbeam, where there are more use cases in Polkadot AH. It’s still a pretty exciting feature to have and could open up some great possibilities in the future

1 Like

Hey @turrizt excelent question.

As you suggested, this is more of a trial run for Polkadot. For Moonbeam, this will be helpful for one-click experiences around Snowbridge and other things.

It does not hurt to have it in Moonriver; Moonriver’s Sovereign account still owns the KSM funds.

This will limit the ability of the Moonriver bank branch in Kusama to “pay up” all the xcKSM of all community users who decide to exit Moonriver to Kusama at once (which is highly unlikely). Either way, those users can just withdraw to AH-Kusama and then teleport to Kusama.

Regards

2 Likes

Doing a last test.

Balance Before:

Kusama:      42241.038514833290
AssetHub:   4.896892713376
Total:            42245.935407546666

Balance After:

Kusama:     35908.05530686472 KSM
AssetHub:  6337.878291419090   KSM
Total:            42245.93359828381

The difference is before/after total balance is 0.001809262856 KSM, probably related to the XCM execution fees.

1 Like

awesome, thanks for the explanation, Alberto

you have my full support!

Support from me, too.

aye support from me as well