-
Notifications
You must be signed in to change notification settings - Fork 378
Don't allow reserve transfers for the relay chain (as this can be trusted teleported to) #1144
Conversation
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
@@ -170,7 +176,7 @@ impl pallet_xcm::Config for Runtime { | |||
type XcmExecuteFilter = Nothing; | |||
type XcmExecutor = XcmExecutor<XcmConfig>; | |||
type XcmTeleportFilter = Everything; | |||
type XcmReserveTransferFilter = Everything; | |||
type XcmReserveTransferFilter = Nothing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay so confirm the intention of this change, this will mean that anybody will still be able to Teleport
any asset in and out of Canvas, but will not be able to perform RevervedTransfer
s, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They should probably both be set to Nothing
at genesis.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we set both to Nothing
then users won't be able to get ROC
tokens on Canvas to pay for fees. So for Teleport
maybe it should be EverythingBut<IsParent>
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't know this was what is used on Rococo. Then yes.
@@ -170,7 +176,7 @@ impl pallet_xcm::Config for Runtime { | |||
type XcmExecuteFilter = Nothing; | |||
type XcmExecutor = XcmExecutor<XcmConfig>; | |||
type XcmTeleportFilter = Everything; | |||
type XcmReserveTransferFilter = Everything; | |||
type XcmReserveTransferFilter = Nothing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay so confirm the intention of this change, this will mean that anybody will still be able to Teleport
any asset in and out of Canvas, but will not be able to perform RevervedTransfer
s, correct?
Do remember that this method doesn't actually prevent users from creating a |
It should be fine also. |
Problem: Tested it and it the other way around. It's the source rather than the dest that gets passed into the filter and you can't tell from the source that the dest is the relay chain. I think dest and beneficiary ought to be added to the filter arguments (as part of XCM3?). |
closing this in favour of Barrier |
Potential fix for paritytech/polkadot#5233
Maybe the definition should be in parachains-common...