-
Notifications
You must be signed in to change notification settings - Fork 796
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
Fungible and fungibles adapters should allow account death like burns and mints #7039
Comments
Very much needed |
I would like to work on this one. |
@dhirajs0 Thank you for wanting to work on this! Let me know if everything is understood or if you have any questions. I'm here to help. |
We can change the Preservation of
If we add |
Yes, we should do exactly this.
We can't add a new Hint now because XCMv5 is already frozen, released in stable2412. But for XCMv6 for example, we can add a hint |
Thanks for the clarification! I’ve raised a PR to address this issue. Would greatly appreciate it if you could review it and share your feedback when you have a moment. |
The fungible and fungibles adapters set the preservation of the burn operation to
Expendable
: here and here.This allows accounts to transfer all their funds (and getting reaped because of it) out of their account.
However, this only works if they're using the
WithdrawAsset
andDepositAsset
instructions, which correspond toburn_from
andmint_into
.If
TransferAsset
is used, as is the case with limited_reserve_assets_transfer, then thetransfer
function will be called withPreserve
.This distinction is arbitrary and we should change the way
TransferAsset
is handled to also allow transferring all the funds of an account. It results in confusing errors for users.If needed, we could add a Hint for changing the default of ALL operations from
Expendable
toPreserve
.The text was updated successfully, but these errors were encountered: