-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Assets pallet: Giving the asset owner the ability to set minimum balance #13486
Assets pallet: Giving the asset owner the ability to set minimum balance #13486
Conversation
@jsidorenko @bkchr Could you review this? |
@ggwpez could you please summon the mighty benchmark bot? |
Co-authored-by: Bastian Köcher <git@kchr.de>
Co-authored-by: Bastian Köcher <git@kchr.de>
bot bench $ pallet dev pallet_assets |
@ggwpez https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2463794 was started for your command Comment |
bot help ☝️ we finally got it |
Here's a link to docs |
@ggwpez Command |
bot merge |
Sorry for jumping in when this is already merged but I want to make sure this new extrinsic is not opening a door for blockchain state spamming: Image the following: An asset is created on Statemint, the team behind the asset makes a gov proposal to make it sufficient with a reasonable How is this scenario prevented? I was expecting to see a check for asset sufficiency to stop the update of the |
@IkerAlus You're right! There should be a check for sufficiency in that call, as you'be described in the issue |
This pull request has been mentioned on Polkadot Forum. There might be relevant details there: https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-40/2468/1 |
…nce (paritytech#13486) * set_min_balance * allow when new_min_balance < old_min_balance * add more specific event * Update frame/assets/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/assets/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets * use actual weight --------- Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <>
…nce (paritytech#13486) * set_min_balance * allow when new_min_balance < old_min_balance * add more specific event * Update frame/assets/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * Update frame/assets/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets * use actual weight --------- Co-authored-by: Bastian Köcher <git@kchr.de> Co-authored-by: command-bot <>
Closes: #13402
Introduces a new extrinsic
set_min_balance
which allows the owner of the specific asset to change themin_balance
required for an asset.This is possible to do if there aren't any accounts holding the asset or if the new min balance is less than the old min balance.
Cumulus companion: paritytech/cumulus#2253