Fungible and fungibles adapters should allow account death like burns and mints #7039
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
C2-good-first-issue
A task for a first time contributor to become familiar with the Polkadot-SDK.
T6-XCM
This PR/Issue is related to XCM.
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: