Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Allow to update min_balance by asset owner for non-sufficient assets in assets pallet #13402

@IkerAlus

Description

@IkerAlus

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

Description of bug

Once an asset is created with create the value assigned to min_balance can't be modified again by the asset owner (It can be done with force_asset_status but this requires ForceOrigin, aka root origin on Statemint/e). On the other hand, the number of decimals, decimals, can be always modified by the asset owner with the set_metadata call.

For external tools, UIs and end users there is a correspondence between minimum balance and number of decimals of an asset. If one of these is modified, the other one should be adapted accordingly. Hence, assets pallet should allow updating min_balance of an asset together with the number of decimals. This is particularly interesting soon after the asset is created and its owners are still in the process of deploying the new asset class. Otherwise, they are forced to destroy the asset (two steps process) and create it again.

Note that the possibility of updating min_balance parameter of an asset should be allow as long as it has no impact in the network. If the asset is made sufficient, then min_balance should be only modified by ForceOrigin.

Steps to reproduce

Create a new asset class with create call and try to change min_balance as the asset owner afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions