Recreated from solana-labs/solana-program-library#6858
Problem:
I believe the authority to withdraw excess lamports from a program owned account for SPL 2022 is set with Minth Authority.
Almost all tokens created will revoke the Mint Authority making this a pointless CLI command. I appreciate there are already a lot of authorities but but surely one more can't hurt?
Solution:
- Add a new extension like WithdrawExcessLamportsAuthority just for mints, along with an instruction to initialize the authority
- Add a new WithdrawExcessLamportsAuthority and support it in SetAuthority
- During withdraw_excess_lamports, if the extension exists, then that's the only possible authority that can withdraw lamports, so even the mint authority wouldn't be able to withdraw lamports
FYI: @joncinque
(recreating this one as I plan to implement it this month or next)
Recreated from solana-labs/solana-program-library#6858
Problem:
I believe the authority to withdraw excess lamports from a program owned account for SPL 2022 is set with Minth Authority.
Almost all tokens created will revoke the Mint Authority making this a pointless CLI command. I appreciate there are already a lot of authorities but but surely one more can't hurt?
Solution:
FYI: @joncinque
(recreating this one as I plan to implement it this month or next)