Skip to content

Commit 15c89ef

Browse files
authored
token-2022: Document issues around closing mints (#24)
#### Problem There are issues around mint closing and reinitialization with different extensions, but they're not explicitly documented. #### Summary of changes Add some information about how to handle closing mints properly.
1 parent 60453c3 commit 15c89ef

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/content/docs/token-2022/extensions.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ The Token program allows owners to close token accounts, but it is impossible
2727
to close mint accounts. In Token-2022, it is possible to close mints by initializing
2828
the `MintCloseAuthority` extension before initializing the mint.
2929

30+
Note: Closing and reinitializing a mint with different extensions can lead to
31+
problems if any token accounts exist at the time of closing. For example, if
32+
a mint is closed and reinitialized with the transfer fee extension, there may be
33+
existing token accounts without the transfer fee extension, allowing them to
34+
bypass fee checks. In most cases, token accounts can be closed and reopened if
35+
needed, but in general, take care when using this feature.
36+
3037
#### Example: Initializing a mint with mint close authority
3138

3239
<Tabs groupId="language" items={['CLI', 'JS']}>

0 commit comments

Comments
 (0)