-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCM Deposit is not Unreserved after Closing XCM Channel #6101
Comments
polkadot-sdk/polkadot/runtime/parachains/src/hrmp.rs Lines 1123 to 1137 in d5b96e9
and there in the So the real closing is done here: https://github.com/paritytech/polkadot-sdk/blob/d5b96e9e7f24adc1799f8e426c5cb69b4f2dbf8a/polkadot/runtime/parachains/src/hrmp.rs#L1137C5-L1137C23 |
so, iiuc, when a team closes an HRMP channel, they receive their funds back in the new session |
Thanks for clarifying! That makes sense, maybe it would also make sense to reserve the balance when the actual channel is established then. But it is clear! Thanks! |
I don't think so. The establishment is done asynchronously in the new session in |
It is clear that when a team inits open or accepts an XCM channel, there is a deposit (currently 10 DOT) for each action:
polkadot-sdk/polkadot/runtime/parachains/src/hrmp.rs
Lines 1470 to 1478 in d5b96e9
polkadot-sdk/polkadot/runtime/parachains/src/hrmp.rs
Lines 1534 to 1542 in d5b96e9
Nevertheless, I don't see this balance being unreserved when the XCM channel is closed ->
polkadot-sdk/polkadot/runtime/parachains/src/hrmp.rs
Line 1593 in d5b96e9
Any reasons?
The text was updated successfully, but these errors were encountered: