Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSIP 48 Add flag to prevent asset's max supply from being changed #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xeroc
Copy link
Member

@xeroc xeroc commented Oct 15, 2018

This is a new proposal that adds a flag to the asset permissions.
This flag allows to opt out of "changing the max supply".

Copy link
Member

@abitmore abitmore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have a flag to disable "asset_issue_operation" as well, like what YOYOW has done (link), so reserved/burned supply can't be recreated/re-issued.


The `disable_modify_max_supply` is a new created flag in the `asset_issuer_permissions`.
The flag can be activated to forbid the modification of the `max_supply` (`asset_object.options`).
Once the flag is activated, it can't be deactivated.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can't be deactivated, why not set it as an issuer_permission?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: permissions can be modified when current_supply = 0. Makes sense also in this case IMO.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmconrad Indeed, I will add that behaviour.

2. Add a `can_modify_max_supply()` the `asset_object`
3. Change the `asset_update_evaluator::evaluate` method to assert false for
1. the deactivation of the `disable_modify_max_supply` flag
2. the modification of the `max_supply` when the `disable_modify_max_supply` is set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about existing assets?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I would recommend the permission is enabled, as is the flag.
That way, behavior isn't changed.
The feature is supposed to be opt-out afterall.

What needs to be done to ensure that for existing assets?

@abitmore abitmore changed the title BSIP 48 BSIP 48 Add flag to prevent asset's max supply from being changed Oct 15, 2018
# Rational

The `disable_modify_max_supply` is a new created flag in the `asset_issuer_permissions`.
The flag can be activated to forbid the modification of the `max_supply` (`asset_object.options`).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the flag is easier to understand if it is called allow_modify_max_supply, i. e. the meaning is inverted.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussion in bitshares/bitshares-core#1375 (review) suggests the opposite.

@pmconrad
Copy link
Contributor

Btw, number 48 may have already been assigned to STEALTH, please coordinate. @ryanRfox ?

@ryanRfox
Copy link
Contributor

ryanRfox commented Jun 5, 2019

Any progress toward advancing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants