Closed
Description
opened on Jun 30, 2020
Current spl-token is completed rent unaware, which leads to a couple problems:
- If the
Token
account is not rent-exempt,solana-program-library/token/src/state.rs
Lines 19 to 26 in f8f51c1
- If the
Account
account is not rent-exempt,solana-program-library/token/src/state.rs
Lines 41 to 52 in f8f51c1
Token
account is now wrong.
(1) is probably not a big issue, but (2) certainly is.
Possible solution:
a) Require the Token
account to be rent-exempt
b) Remove the supply
field from Token
account so that an Account
account that is not rent-exempt cannot poison the supply. This increases the burden on Rpc and other clients, as the token supply must now be calculated by enumerating all the Account
accounts for a given token
Metadata
Assignees
Labels
No labels
Activity