Skip to content

Add new extension WithdrawExcessLamportsAuthority for mints #344

Description

@wowinter13

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions