Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
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.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
Once an asset is created with
createthe value assigned tomin_balancecan't be modified again by the asset owner (It can be done withforce_asset_statusbut this requiresForceOrigin, aka root origin on Statemint/e). On the other hand, the number of decimals,decimals, can be always modified by the asset owner with theset_metadatacall.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_balanceof 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_balanceparameter of an asset should be allow as long as it has no impact in the network. If the asset is made sufficient, thenmin_balanceshould be only modified byForceOrigin.Steps to reproduce
Create a new asset class with
createcall and try to changemin_balanceas the asset owner afterwards.