-
Notifications
You must be signed in to change notification settings - Fork 87
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
SIMD-0194: Deprecate rent exemption threshold #194
base: main
Are you sure you want to change the base?
SIMD-0194: Deprecate rent exemption threshold #194
Conversation
Minor edits / suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the change, just a few open questions. I'm not sure what the best deprecation process is for the field.
Set the value of `DEFAULT_EXEMPTION_THRESHOLD` from `2.0` to `1.0`, and | ||
deprecate it from the protocol. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do you propose deprecation? I'm curious which one hurts less post-deprecation: changing to 1u64
and preserving the account layout/size, or complete removal, changing the account size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We simply stop using it in any SDKs and thus any new programs going forward will be using u64 math, simply omitting the f64 value entirely, but it will remain in the rent account to not break the existing API and will be flagged as deprecated.
* Allow users to make the assumption that `2.0` will remain stable and do `u64` | ||
math themselves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could stablize this, but imo the field will soon become a misnomer, considering rent collection is being disabled. I think your proposed design makes more sense.
Fix lint
…deprecate-rent-exemption-threshold.md
No description provided.