-
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
token: require all token accounts be rent-exempt and restore total supply field in the mint #328
Comments
Mints too |
and multisigs! |
One effect of this change is that wrapped SOL accounts cannot hold less wrapped SOL than the account rent-exempt minimum balance. Any concerns about this? |
Seems fine to me. Technically not necessary but the consistency is nice. Here's a fun edge case:
|
I think we need a |
Allowing non-rent-exempt wrapped SOL accounts requires a bit of special casing, since rent debits will not be reflected in the account's
Agreed, we'll need that for wrapped SOL, so |
We lost the total supply field in the mint when we realized that if token accounts aren't created rent-exempt, they could just disappear and cause the total supply to be inflated.
However we've failed to discover a compelling reason to permit non-rent-exempt token accounts. Additionally with the new
CloseAccount
instruction, you can reclaim your SOL from a token account at any time.Requiring rent exemption also simplifies wallets and other token clients, as they no longer need to be considered about a token account disappearing because it was underfunded, either by accident or maliciously.
The text was updated successfully, but these errors were encountered: