You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and DepositAsset instructions, which correspond to burn_from and mint_into.
If TransferAsset is used, as is the case with limited_reserve_assets_transfer, then the transfer function will be called with Preserve.
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 to Preserve.
The text was updated successfully, but these errors were encountered:
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: