-
Notifications
You must be signed in to change notification settings - Fork 2k
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
No mechanism for freezing token accounts #229
Comments
Should be settable only once during token initialization, so it’s possible to guarantee that this token instance cannot freeze accounts. |
The freeze authority needs to optionally be a multisig account |
Updates:
|
This means that freeze-able tokens will by definition have non-fixed supplies, since a mint owner can mint new tokens. Is this an issue? |
We should try to avoid changing the layout from token 1's account as this will impact the ability of existing users to easily migrate. Changing
from a bool and enum where "2" == "frozen" would meet this requirement |
Thanks, great point. Yeah lets add that separate freeze authority to the mint then after all |
@mvines Is it still okay to expect that the freeze authority will always be the same as the mint owner/multisig, as in Update 1. above? I'm trying to figure out how to handle the accounts passed in with If it's all good to expect them to be the same, and we need to change the Mint structure anyway, how about bytes for "supply is fixed" and "token is freezable", and stick with a single |
I think we want the option of a separate freeze authority with a While we pass the optional owner in as an account,
and we could rework
|
We could have the owner and freeze authority be the same during mint init and then allow folks to change either in a seperate instruction. We already have a |
I did consider that but then we do still need a way to toggle freezing in InitializeMint, so we'd still end up adding new fields to
Yep! Or maybe just replace |
Yeah, I wasn't trying to avoid adding the freeze authority to the mint structure because I think that's necessary. I was addressing @CriesofCarrots 's concern about the complicated |
@aeyakovenko said this above. I'd say that precludes any kind of |
If freezing is disabled on a mint, I agree that it probably shouldn't be possible to enable it later. Like fixed supply. But if freezing is enabled, we do need a |
Okay, makes sense. |
An authority may want the ability to "freeze" specific accounts.
Add a new authority to the mint and a new flag in accounts. The authority is able to toggle that flag. Setting the flag to "frozen" disables the account owner and delegate's authority.
The text was updated successfully, but these errors were encountered: